Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit42feebf

Browse files
committed
Addressing issue with status_wrapper.
1 parent567f976 commit42feebf

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‎

Lines changed: 1 addition & 1 deletion
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‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
namespaceboost {namespacenetwork {namespacehttp {
1313

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

1818
status_wrapper::operatoruint16_t ()const {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp