-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Response with multiple Transfer-Encoding: chunked
header fields not parsed as chunk
#683
Comments
Indeed, it would seem the bug is in the parsing of the |
@seanmonstar I'm running into this issue myself, but I'm not sure how/where to best fix it. Any pointers where I should start looking? |
This occurs in the parsing. I cannot recall if there are any headers that are comma separated but should be rejected if there is more than one line. If not, then the fix would be in the |
I have written a parser for comma-delimited headers that should catch all cases like multiline headers, too much whitespace and superfluos commas. |
HeaderX: a HeaderX: b MUST be interpreted as HeaderX: a, b See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Fixes hyperium#683
HeaderX: a HeaderX: b MUST be interpreted as HeaderX: a, b See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Fixes hyperium#683
HeaderX: a HeaderX: b MUST be interpreted as HeaderX: a, b See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Fixes hyperium#683
HeaderX: a HeaderX: b MUST be interpreted as HeaderX: a, b See: https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.2 Fixes hyperium#683
I've adapted this code from
client/response.rs
:The result is:
"1\r\nq\r\n2\r\nwe\r\n2\r\nrt\r\n0\r\n\r\n"
Unless I'm misreading the HTTP spec, it seems
should be the same as
The latter correctly results in
"qwert"
being printed out.The text was updated successfully, but these errors were encountered: