Skip to content

Commit 092cd57

Browse files
chenzhaoyudeanberris
authored andcommitted
fix http client body content (cpp-netlib#760)
1 parent 610c8cb commit 092cd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

boost/network/protocol/http/client/connection/async_protocol_handler.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ struct http_async_protocol_handler {
389389
partial_parsed.append(part_begin, part_begin + bytes);
390390
part_begin = part.begin();
391391
if (check_parse_body_complete()) {
392-
callback(boost::asio::error::eof, bytes);
392+
callback(boost::asio::error::eof, 0);
393393
} else {
394394
delegate_->read_some(
395395
boost::asio::mutable_buffers_1(part.data(), part.size()), callback);

0 commit comments

Comments
 (0)