diff --git a/Release/src/http/client/http_client_asio.cpp b/Release/src/http/client/http_client_asio.cpp index 44296040e0..a884099032 100644 --- a/Release/src/http/client/http_client_asio.cpp +++ b/Release/src/http/client/http_client_asio.cpp @@ -1123,7 +1123,7 @@ class asio_context : public request_context, public std::enable_shared_from_this if (colon != std::string::npos) { auto name = header.substr(0, colon); - auto value = header.substr(colon + 2, header.size() - (colon + 3)); // also exclude '\r' + auto value = header.substr(colon + 1, header.size() - colon - 2); boost::algorithm::trim(name); boost::algorithm::trim(value);