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 chunked transfer-encoding #29

Merged
merged 1 commit into from Apr 22, 2014
Merged

Fix chunked transfer-encoding #29

merged 1 commit into from Apr 22, 2014

Conversation

retupmoca
Copy link
Contributor

If a chunk header line fell on a buffer boundary just right, parsing
would fail.

Test response data is at https://gist.github.com/retupmoca/11147476 - the initial socket read gets the '0' character, but not any of the '\r\n' stuff after it, so the chunk parsing fails without this patch. I'm not sure what the best way to put this into a .t file is.

If a chunk header line fell on a buffer boundary just right, parsing
would fail.
@moritz moritz merged commit 267ac05 into cosimo:master Apr 22, 2014
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.

None yet

2 participants