mirror of
https://github.com/nodejs/http-parser.git
synced 2025-10-22 08:22:06 +08:00
Allow HTTP_MAX_HEADER_SIZE to be defined externally
This commit is contained in:

committed by
Fedor Indutny

parent
56f7ad0e2e
commit
24e2d2d43f
@@ -653,7 +653,7 @@ size_t http_parser_execute (http_parser *parser,
|
||||
* than any reasonable request or response so this should never affect
|
||||
* day-to-day operation.
|
||||
*/
|
||||
if (parser->nread > HTTP_MAX_HEADER_SIZE) {
|
||||
if (parser->nread > (HTTP_MAX_HEADER_SIZE)) {
|
||||
SET_ERRNO(HPE_HEADER_OVERFLOW);
|
||||
goto error;
|
||||
}
|
||||
|
Reference in New Issue
Block a user