Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

src: fixed compile error C2143 for vs2012

PR-URL: #261
Reviewed-By: Fedor Indutny <fedor@indutny.com>
commit e01811e7f4894d7f0f7f4bd8492cccec6f6b4038 1 parent b36c2a9
@sebastian-philipp sebastian-philipp authored indutny committed
Showing with 2 additions and 1 deletion.
  1. +2 −1  http_parser.c
View
3  http_parser.c
@@ -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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.