Skip to content

Fix chunk and content-length encoding #759

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

Merged
merged 2 commits into from
May 15, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
The entire body has already been placed in partial_parsed, so don't d…
…irect the callback to append any more data
  • Loading branch information
LoopinFool authored and Aaron Avery committed May 11, 2017
commit 0c3dec6ff05fd95c576ee5f9c486cdee4e885622
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,7 @@ struct http_async_protocol_handler {
partial_parsed.append(part_begin, it);
part_begin = part.begin();
if (check_parse_body_complete()) {
callback(boost::asio::error::eof, bytes);
callback(boost::asio::error::eof, 0);
} else {
delegate_->read_some(
boost::asio::mutable_buffers_1(part.data(), part.size()), callback);
Expand Down