File tree 2 files changed +2
-2
lines changed
boost/network/protocol/http
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -329,7 +329,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
329
329
// buffer.
330
330
buffer_type::const_iterator begin = this ->part_begin ;
331
331
buffer_type::const_iterator end = begin;
332
- std::advance (end, remainder );
332
+ std::advance (end, std::min (bytes_transferred, remainder ) );
333
333
334
334
// We're setting the body promise here to an empty string because
335
335
// this can be used as a signaling mechanism for the user to
Original file line number Diff line number Diff line change 12
12
namespace boost { namespace network { namespace http {
13
13
14
14
status_wrapper::status_wrapper (response_base &response)
15
- : response_(response_ )
15
+ : response_(response )
16
16
{}
17
17
18
18
status_wrapper::operator uint16_t () const {
You can’t perform that action at this time.
0 commit comments