You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HTTP parser will enter the s_body_identity_eof state and http_body_is_final can never be true. So when you read EOF, http_body_is_final returns false, and it becomes error. But this is completely valid HTTP1.1 response.
It seems like in the above code http_parser_execute correctly handles this case, so the solution should be to delete the line if (n == 0 && !http_body_is_final(&c->parser)) goto error;.
The text was updated successfully, but these errors were encountered:
In the case that you have a response like this:
The HTTP parser will enter the
s_body_identity_eof
state andhttp_body_is_final
can never be true. So when you read EOF,http_body_is_final
returns false, and it becomes error. But this is completely valid HTTP1.1 response.It seems like in the above code
http_parser_execute
correctly handles this case, so the solution should be to delete the lineif (n == 0 && !http_body_is_final(&c->parser)) goto error;
.The text was updated successfully, but these errors were encountered: