|
|
|
@ -738,12 +738,14 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
case CR:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(path);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_req_line_almost_done;
|
|
|
|
|
break;
|
|
|
|
|
case LF:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(path);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_header_field_start;
|
|
|
|
|
break;
|
|
|
|
@ -778,11 +780,13 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
break;
|
|
|
|
|
case CR:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_req_line_almost_done;
|
|
|
|
|
break;
|
|
|
|
|
case LF:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_header_field_start;
|
|
|
|
|
break;
|
|
|
|
@ -811,12 +815,14 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
case CR:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(query_string);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_req_line_almost_done;
|
|
|
|
|
break;
|
|
|
|
|
case LF:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(query_string);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_header_field_start;
|
|
|
|
|
break;
|
|
|
|
@ -845,11 +851,13 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
break;
|
|
|
|
|
case CR:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_req_line_almost_done;
|
|
|
|
|
break;
|
|
|
|
|
case LF:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_header_field_start;
|
|
|
|
|
break;
|
|
|
|
@ -878,12 +886,14 @@ size_t http_parser_execute (http_parser *parser,
|
|
|
|
|
case CR:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(fragment);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_req_line_almost_done;
|
|
|
|
|
break;
|
|
|
|
|
case LF:
|
|
|
|
|
CALLBACK(url);
|
|
|
|
|
CALLBACK(fragment);
|
|
|
|
|
parser->http_major = 0;
|
|
|
|
|
parser->http_minor = 9;
|
|
|
|
|
state = s_header_field_start;
|
|
|
|
|
break;
|
|
|
|
|