hyper
hyper copied to clipboard
Option to allow leading whitespace in first HTTP/1 response header
Version current git master
Platform Linux
Description hyper rejects HTTP responses where the first header has leading whitespace. This is spec compliant.
The popular browsers accept such headers and therefore we are now converting curl to (again) also allow them (in https://github.com/curl/curl/pull/11607).
hyper's current behavior prevents it from getting content other widely used HTTP clients can fetch. Do you think that is perhaps reason to reconsider this stance and allow this violation? It would make life in curl easier as right now curl+hyper builds have different behavior than curl with its native HTTP implementation.
I guess we could allow it in hyper too, perhaps when also enabled to allow obsolete line-folding. For anyone wanting to do this, the fix would need to be in httparse
.
I would be interested in picking this up edit: once this is unblocked from httpparse
.
I am interested in picking this up, can make the change in httparse
This issue was resolved at https://github.com/seanmonstar/httparse/pull/147