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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy