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
m0ppers opened this issue
Dec 9, 2019
· 1 comment
· Fixed by #2075
Labels
A-http1Area: HTTP/1 specific.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
I have a web service that returns its content with "Transfer-Encoding: identity". If I read the spec correctly that means that the content should not be touched and interpreted as it is.
Unfortunately hyper seems to assume that whenever transfer encoding is present in a response header it interprets the content as if it would be chunked.
I modified the following line locally to CLOSE_DELIMITED and now it works for me (tm)
seanmonstar
added
A-http1
Area: HTTP/1 specific.
E-easy
Effort: easy. A task that would be a great starting point for a new contributor.
C-bug
Category: bug. Something is wrong. This is bad!
labels
Dec 9, 2019
A-http1Area: HTTP/1 specific.C-bugCategory: bug. Something is wrong. This is bad!E-easyEffort: easy. A task that would be a great starting point for a new contributor.
I have a web service that returns its content with "Transfer-Encoding: identity". If I read the spec correctly that means that the content should not be touched and interpreted as it is.
Unfortunately hyper seems to assume that whenever transfer encoding is present in a response header it interprets the content as if it would be chunked.
I modified the following line locally to CLOSE_DELIMITED and now it works for me (tm)
https://github.com/hyperium/hyper/blob/0.12.x/src/proto/h1/role.rs#L768
interestingly the code comment doesn't really match the actual code. not sure what the background of this is.
The text was updated successfully, but these errors were encountered: