Skip to content

Commit

Permalink
feat(api): increase accepted header size
Browse files Browse the repository at this point in the history
  • Loading branch information
Bycob committed Mar 14, 2023
1 parent 66cbff5 commit 07f6ff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/http/app_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ class AppComponent
components->bodyDecoder = std::make_shared<
oatpp::web::protocol::http::incoming::SimpleBodyDecoder>(decoders);

/* Configure size limits */
components->config->headersReaderMaxSize = 16384;

auto connectionHandler
= std::make_shared<oatpp::web::server::HttpConnectionHandler>(
components);
Expand Down

0 comments on commit 07f6ff3

Please sign in to comment.