Skip to content

Commit

Permalink
Missed one defence against no NOMINMAX in bed8fa5. (#1202)
Browse files Browse the repository at this point in the history
  • Loading branch information
garethsb authored and BillyONeal committed Jul 23, 2019
1 parent 6f602be commit a40a286
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Release/src/http/client/http_client_asio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1444,8 +1444,8 @@ class asio_context final : public request_context, public std::enable_shared_fro
}
}

m_content_length = std::numeric_limits<size_t>::max(); // Without Content-Length header, size should be same as
// TCP stream - set it size_t max.
m_content_length = (std::numeric_limits<size_t>::max)(); // Without Content-Length header, size should be same as
// TCP stream - set it size_t max.
m_response.headers().match(header_names::content_length, m_content_length);

if (!this->handle_compression())
Expand Down

0 comments on commit a40a286

Please sign in to comment.