diff --git a/src/impl/http_parser/lolevel/HTTPParser.java b/src/impl/http_parser/lolevel/HTTPParser.java index fa15569..42022ec 100644 --- a/src/impl/http_parser/lolevel/HTTPParser.java +++ b/src/impl/http_parser/lolevel/HTTPParser.java @@ -374,7 +374,6 @@ public int execute(ParserSettings settings, ByteBuffer data) { if (H == ch) { state = State.res_or_resp_H; - settings.call_on_message_begin(this); } else { type = ParserType.HTTP_REQUEST; method = start_req_method_assign(ch); @@ -384,6 +383,7 @@ public int execute(ParserSettings settings, ByteBuffer data) { index = 1; state = State.req_method; } + settings.call_on_message_begin(this); break;