Browse files

Allow whitespace in the 'Content-Length' header.

  • Loading branch information...
1 parent 459507f commit a66c61c190a90653da3fd7c1443a1a7329472567 @TooTallNate TooTallNate committed with ry Oct 11, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 http_parser.c
View
1 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';

0 comments on commit a66c61c

Please sign in to comment.