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

[BUG]: Content-length header can be invalid #5

Merged
merged 1 commit into from
Dec 21, 2016
Merged

Conversation

toddself
Copy link
Contributor

Thanks to javascript and unicode and counting characters, you can get a content-
length header that is actually shorter than your content. Compliant HTTP agents
will truncate at that point, possibly causing data corruption or invalid
JSON objects.

Copy link

@kosamari kosamari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👏

Thanks to javascript and unicode and counting characters, you can get a content-
length header that is actually shorter than your content. Compliant HTTP agents
will truncate at that point, possibly causing data corruption or invalid
JSON objects.
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.01%) to 98.45% when pulling fcd5a4c on bug/truncate into ba6efcb on master.

@toddself
Copy link
Contributor Author

f.u. coveralls

@toddself toddself merged commit 91f63cf into master Dec 21, 2016
@toddself toddself deleted the bug/truncate branch December 21, 2016 22:31
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.

3 participants