Open johejo opened 6 years ago
Yup, I suspect this is probably wrong. Patches to resolve it would be very welcome. :smile:
Also, a deadlock has occurred in an HTTP/1.1 HEAD request trying to read an empty body.
When I traced the part that crashed with InvalidBodyLengthError, the "request_method" which is the instance variable of H2Stream class remained None. Even with a successful GET request, it will remain None as well. Is this correct? When executing with the - -h2 option, "request_method" is correctly set to b 'HEAD' or b'GET'.
In a non-secure HTTP/2 HEAD request, hyper try to receive an empty body. However, if I send a HEAD request to http://nghttp2.org/httpbin/get, it is successful. They also succeed when executed with the --h2 option added. My private server log shows that the server is probably returning the correct HEAD response. HTTP server: h2o v2.2.3