Skip to content

Commit 2501bfc

Browse files
committed
Merge branch 'header-fix' of https://github.com/stewartbright/cpprestsdk into stewartbright-header-fix
2 parents 5f0b315 + 4f9a550 commit 2501bfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/http_client_asio.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1126,7 +1126,7 @@ class asio_context : public request_context, public std::enable_shared_from_this
11261126
if (colon != std::string::npos)
11271127
{
11281128
auto name = header.substr(0, colon);
1129-
auto value = header.substr(colon + 2, header.size() - (colon + 3)); // also exclude '\r'
1129+
auto value = header.substr(colon + 1, header.size() - colon - 2);
11301130
boost::algorithm::trim(name);
11311131
boost::algorithm::trim(value);
11321132

0 commit comments

Comments
 (0)