Merge pull request #77 from AndreLouisCaron/compile-fix

Fixes build on MSVC.
v0.10
Ben Noordhuis 13 years ago
commit 7f89b91314

@ -960,7 +960,7 @@ size_t http_parser_execute (http_parser *parser,
MARK(url); MARK(url);
parser->state = parse_url_char( parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT); (enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) { if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL); SET_ERRNO(HPE_INVALID_URL);
goto error; goto error;
@ -982,7 +982,7 @@ size_t http_parser_execute (http_parser *parser,
goto error; goto error;
default: default:
parser->state = parse_url_char( parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT); (enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) { if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL); SET_ERRNO(HPE_INVALID_URL);
goto error; goto error;
@ -1021,7 +1021,7 @@ size_t http_parser_execute (http_parser *parser,
break; break;
default: default:
parser->state = parse_url_char( parser->state = parse_url_char(
parser->state, ch, parser->method == HTTP_CONNECT); (enum state)parser->state, ch, parser->method == HTTP_CONNECT);
if (parser->state == s_dead) { if (parser->state == s_dead) {
SET_ERRNO(HPE_INVALID_URL); SET_ERRNO(HPE_INVALID_URL);
goto error; goto error;

Loading…
Cancel
Save