File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
include/network/protocol/http/client/connection Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -439,11 +439,11 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
439
439
auto it = headers_.find (" Content-Length" );
440
440
if (it != headers_.end ()) {
441
441
try {
442
- unsigned content_length = stoi (it->second );
442
+ unsigned content_length = std:: stoi (it->second );
443
443
get_more = (end - begin) < content_length;
444
- NETWORK_MESSAGE (" Content-Length: " << content_length
445
- << " , disconnect: " << !get_more);
446
- } catch (... ) {
444
+ NETWORK_MESSAGE (" Content-Length: " << content_length);
445
+ } catch ( const std::invalid_argument&) {
446
+ } catch (const std::out_of_range& ) {
447
447
}
448
448
}
449
449
// Here we don't have a body callback. Let's
You can’t perform that action at this time.
0 commit comments