Use http_parser for tunneling connection transparently
This commit is contained in:
parent
12ab6863c4
commit
a143133d43
|
@ -1627,9 +1627,14 @@ size_t http_parser_execute (http_parser *parser,
|
||||||
|
|
||||||
/* Exit, the rest of the connect is in a different protocol. */
|
/* Exit, the rest of the connect is in a different protocol. */
|
||||||
if (parser->upgrade) {
|
if (parser->upgrade) {
|
||||||
parser->state = NEW_MESSAGE();
|
/* We want to use http_parser for tunneling connection
|
||||||
CALLBACK_NOTIFY(message_complete);
|
transparently */
|
||||||
return (p - data) + 1;
|
/* Read body until EOF */
|
||||||
|
parser->state = s_body_identity_eof;
|
||||||
|
break;
|
||||||
|
/* parser->state = NEW_MESSAGE(); */
|
||||||
|
/* CALLBACK_NOTIFY(message_complete); */
|
||||||
|
/* return (p - data) + 1; */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (parser->flags & F_SKIPBODY) {
|
if (parser->flags & F_SKIPBODY) {
|
||||||
|
|
Loading…
Reference in New Issue