Skip to content

Commit

Permalink
Raise max headers count
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB authored Dec 18, 2023
1 parent d948b51 commit 4050845
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HttpParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,13 @@ std::optional<T *> optional_ptr(T *ptr) {
}

static const size_t MAX_FALLBACK_SIZE = (size_t) atoi(optional_ptr(getenv("UWS_HTTP_MAX_HEADERS_SIZE")).value_or((char *) "4096"));
const static int MAX_HEADERS = 100;

struct HttpRequest {

friend struct HttpParser;

private:
const static int MAX_HEADERS = 50;
struct Header {
std::string_view key, value;
} headers[MAX_HEADERS];
Expand Down

0 comments on commit 4050845

Please sign in to comment.