Doesn’t support HTTP/1 style response
Opened this issue · 3 comments
snej commented
Just skimmed the source code; one thing that jumps out is that it expects either a chunked response, or a content-length. But another common option is neither of these: the response body just extends till EOF on the stream.
juancarlospaco commented
I do like the idea, if you know how to do it, Pull Request welcome, will merge, add yourself as author.
I do not have time to do it myself right now. 🙂:+1:
juancarlospaco commented
Do you actually use HTTP 1.0
?, most of HTTP servers are 1.1
or higher nowadays...
snej commented
I've definitely run across real-world servers that do this, especially simple CGI-type scripts that generate the response dynamically and don't bother to buffer it first or insert the chunked metadata.