Skip to content

Commit e01811e

Browse files
sebastian-philippindutny
authored andcommitted
src: fixed compile error C2143 for vs2012
PR-URL: nodejs#261 Reviewed-By: Fedor Indutny <[email protected]>
1 parent b36c2a9 commit e01811e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http_parser.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1841,11 +1841,12 @@ size_t http_parser_execute (http_parser *parser,
18411841

18421842
case s_headers_done:
18431843
{
1844+
int hasBody;
18441845
STRICT_CHECK(ch != LF);
18451846

18461847
parser->nread = 0;
18471848

1848-
int hasBody = parser->flags & F_CHUNKED ||
1849+
hasBody = parser->flags & F_CHUNKED ||
18491850
(parser->content_length > 0 && parser->content_length != ULLONG_MAX);
18501851
if (parser->upgrade && (parser->method == HTTP_CONNECT ||
18511852
(parser->flags & F_SKIPBODY) || !hasBody)) {

0 commit comments

Comments
 (0)