File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
include/network/protocol/http/client/connection Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -738,7 +738,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
738
738
auto it = headers.find (" Content-Length" );
739
739
if (it != headers.end ()) {
740
740
try {
741
- content_length_ = std::stoi (it->second );
741
+ content_length_ = std::stoul (it->second );
742
742
NETWORK_MESSAGE (" Content-Length: " << *content_length_);
743
743
} catch (const std::invalid_argument&) {
744
744
} catch (const std::out_of_range&) {
@@ -825,7 +825,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
825
825
boost::promise<boost::uint16_t > status_promise;
826
826
boost::promise<std::string> status_message_promise;
827
827
boost::promise<std::multimap<std::string, std::string> > headers_promise;
828
- boost::optional<unsigned > content_length_;
828
+ boost::optional<size_t > content_length_;
829
829
boost::promise<std::string> source_promise;
830
830
boost::promise<std::string> destination_promise;
831
831
boost::promise<std::string> body_promise;
You can’t perform that action at this time.
0 commit comments