Skip to content

Commit 42feebf

Browse files
committed
Addressing issue with status_wrapper.
1 parent 567f976 commit 42feebf

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

boost/network/protocol/http/client/connection/async_normal.ipp

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
329329
// buffer.
330330
buffer_type::const_iterator begin = this->part_begin;
331331
buffer_type::const_iterator end = begin;
332-
std::advance(end, remainder);
332+
std::advance(end, std::min(bytes_transferred, remainder));
333333

334334
// We're setting the body promise here to an empty string because
335335
// this can be used as a signaling mechanism for the user to

boost/network/protocol/http/message/wrappers/status.ipp

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespace boost { namespace network { namespace http {
1313

1414
status_wrapper::status_wrapper(response_base &response)
15-
: response_(response_)
15+
: response_(response)
1616
{}
1717

1818
status_wrapper::operator uint16_t () const {

0 commit comments

Comments
 (0)