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 using Transfer-Encoding: identity with no content length #126

Merged
merged 1 commit into from Dec 15, 2016

Conversation

tomaka
Copy link
Member

@tomaka tomaka commented Dec 15, 2016

Err, I accidentally pushed my branch on this repo instead of the fork.

Anyway, this fixes the situation where the client requests Transfer-Encoding: identity (or uses HTTP 1.0 which only supports identity) and no content length was specified.
Before this fix, the code would panic. Now it puts the whole response in a buffer and find the length thanks to this.

@frewsxcv frewsxcv merged commit d9ab9e5 into master Dec 15, 2016
@frewsxcv frewsxcv deleted the te-fix branch December 15, 2016 16:26
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