Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

http-parser: Allow whitespace in the 'Content-Length' header.

  • Loading branch information...
commit 511f80b3c8f356e3a2cc15b360b6f43c543def1a 1 parent 13dba0d
@TooTallNate TooTallNate authored ry committed
Showing with 1 addition and 0 deletions.
  1. +1 −0  deps/http_parser/http_parser.c
View
1  deps/http_parser/http_parser.c
@@ -1264,6 +1264,7 @@ size_t http_parser_execute (http_parser *parser,
break;
case h_content_length:
+ if (ch == ' ') break;
if (ch < '0' || ch > '9') goto error;
parser->content_length *= 10;
parser->content_length += ch - '0';
Please sign in to comment.
Something went wrong with that request. Please try again.