Skip to content
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