Open mxork opened 2 years ago
I'm able to reproduce. I'm curious what your use case is, do you mind sharing?
No legitimate use case here; I'm using an http/1.1 client library which uselessly opts into using Transfer-Encoding: chunked
. I think its fair to say the issue is on the library's side.
Feel free to close.
Interesting. Ganache should support it so we'll leave it open, thanks!
Related issue: the http server is emitting an invalid HTTP/1.1 status line, eg.:
HTTP/1.1 400
The RFC is quite clear, however (https://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1):
Status-Line = HTTP-Version SP Status-Code SP Reason-Phrase CRLF
The Reason-Phrase is allowed to be an empty string, but the separating space is not optional.
I'm unsure whether to open another issue for this, or if https://github.com/uNetworking/uWebSockets.js is where the buck stops.
We should probably just send back the reason string ourselves, though uWS.js might appreciate an Issue on their side too.
Closing as won't fix because it doesn't look like https://github.com/uNetworking/uWebSockets.js/issues/669 will get fixed.
I'm planning on fixing this. Did not know anyone wanted it fixed.
Fixed, will be part of next release
trufflesuite/ganache:v7.0.2