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

Ensure that chunk buffer contains terminating HTTP newline #42

Merged
merged 2 commits into from Mar 15, 2012

Conversation

pmakholm
Copy link
Contributor

@pmakholm pmakholm commented Mar 8, 2012

If sysread() returns content just short of the termination HTTP newline, then
the content of the chunk is removed from $chunk_buffer while eventually
leaving the HTTP newline. This breaks the invariant that $chunk_buffer will
always start with the size of the next chunk.

If sysread() returns content just short of the termination HTTP newline, then
the content of the chunk is removed from $chunk_buffer while eventually
leaving the HTTP newline. This breaks the invariant that $chunk_buffer will
always start with the size of the next chunk.
@miyagawa
Copy link
Owner

miyagawa commented Mar 8, 2012

Can you write a unit test to verify the fix?

miyagawa added a commit that referenced this pull request Mar 15, 2012
Ensure that chunk buffer contains terminating HTTP newline
@miyagawa miyagawa merged commit f0ac5bd into miyagawa:master Mar 15, 2012
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