Permalink
Browse files

Addressing issue with status_wrapper.

  • Loading branch information...
1 parent 567f976 commit 42feebfec1e4e64af4886718a87e79772e57d1f3 @deanberris deanberris committed May 10, 2012
@@ -329,7 +329,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
// buffer.
buffer_type::const_iterator begin = this->part_begin;
buffer_type::const_iterator end = begin;
- std::advance(end, remainder);
+ std::advance(end, std::min(bytes_transferred, remainder));
// We're setting the body promise here to an empty string because
// this can be used as a signaling mechanism for the user to
@@ -12,7 +12,7 @@
namespace boost { namespace network { namespace http {
status_wrapper::status_wrapper(response_base &response)
-: response_(response_)
+: response_(response)
{}
status_wrapper::operator uint16_t () const {

0 comments on commit 42feebf

Please sign in to comment.