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);
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) {
SET_ERRNO(HPE_INVALID_URL);
goto error;
@ -982,7 +982,7 @@ size_t http_parser_execute (http_parser *parser,
goto error;
default:
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) {
SET_ERRNO(HPE_INVALID_URL);
goto error;
@ -1021,7 +1021,7 @@ size_t http_parser_execute (http_parser *parser,
break;
default:
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) {
SET_ERRNO(HPE_INVALID_URL);
goto error;

Loading…
Cancel
Save