Skip to content
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

Fix handling of Transfer-Encoding: chunked #8

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

endnil
Copy link
Contributor

@endnil endnil commented Nov 9, 2020

libcurl was doing the decoding, but leaving the Transfer-Encoding: chunked header in place. The lack of chunk sizes in the body was confusing the HTTP parser, resulting in an HPE_INVALID_CHUNK_SIZE error.

This PR disables transfer decoding in libcurl, instead leaving it up to the HTTP parser in mruby-http.

libcurl was doing the decoding, but leaving the `Transfer-Encoding:
chunked` header in place.  The lack of chunk sizes in the body was
confusing the HTTP parser, resulting in an `HPE_INVALID_CHUNK_SIZE`
error.
@mattn mattn merged commit ff45ed5 into mattn:master Nov 9, 2020
@mattn
Copy link
Owner

mattn commented Nov 9, 2020

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants