From a40a28610db709ce6abc2bd0bd0f16a2e0af7ebd Mon Sep 17 00:00:00 2001 From: Gareth Sylvester-Bradley <31761158+garethsb-sony@users.noreply.github.com> Date: Tue, 23 Jul 2019 18:54:40 +0100 Subject: [PATCH] Missed one defence against no NOMINMAX in bed8fa538c862a8297cb02c99d8b3dcc29247d5b. (#1202) --- Release/src/http/client/http_client_asio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Release/src/http/client/http_client_asio.cpp b/Release/src/http/client/http_client_asio.cpp index f8401d6e99..a90ca6a7fa 100644 --- a/Release/src/http/client/http_client_asio.cpp +++ b/Release/src/http/client/http_client_asio.cpp @@ -1444,8 +1444,8 @@ class asio_context final : public request_context, public std::enable_shared_fro } } - m_content_length = std::numeric_limits::max(); // Without Content-Length header, size should be same as - // TCP stream - set it size_t max. + m_content_length = (std::numeric_limits::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())