Skip to content
This repository has been archived by the owner on Nov 6, 2022. It is now read-only.

Commit

Permalink
src: fixed compile error C2143 for vs2012
Browse files Browse the repository at this point in the history
PR-URL: #261
Reviewed-By: Fedor Indutny <[email protected]>
  • Loading branch information
sebastian-philipp authored and indutny committed Jul 23, 2015
1 parent b36c2a9 commit e01811e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion http_parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -1841,11 +1841,12 @@ size_t http_parser_execute (http_parser *parser,

case s_headers_done:
{
int hasBody;
STRICT_CHECK(ch != LF);

parser->nread = 0;

int hasBody = parser->flags & F_CHUNKED ||
hasBody = parser->flags & F_CHUNKED ||
(parser->content_length > 0 && parser->content_length != ULLONG_MAX);
if (parser->upgrade && (parser->method == HTTP_CONNECT ||
(parser->flags & F_SKIPBODY) || !hasBody)) {
Expand Down

0 comments on commit e01811e

Please sign in to comment.