src: fixed compile error C2143 for vs2012

PR-URL: https://github.com/joyent/http-parser/pull/261
Reviewed-By: Fedor Indutny <fedor@indutny.com>
make-http-max-header-size-gyp-configurable
Sebastian Philipp 10 years ago committed by Fedor Indutny
parent b36c2a9ece
commit e01811e7f4

@ -1841,11 +1841,12 @@ reexecute:
case s_headers_done: case s_headers_done:
{ {
int hasBody;
STRICT_CHECK(ch != LF); STRICT_CHECK(ch != LF);
parser->nread = 0; parser->nread = 0;
int hasBody = parser->flags & F_CHUNKED || hasBody = parser->flags & F_CHUNKED ||
(parser->content_length > 0 && parser->content_length != ULLONG_MAX); (parser->content_length > 0 && parser->content_length != ULLONG_MAX);
if (parser->upgrade && (parser->method == HTTP_CONNECT || if (parser->upgrade && (parser->method == HTTP_CONNECT ||
(parser->flags & F_SKIPBODY) || !hasBody)) { (parser->flags & F_SKIPBODY) || !hasBody)) {

Loading…
Cancel
Save