Please sign in to comment.
Ensure that chunk buffer contains terminating HTTP newline
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.
- Loading branch information...