Skip to content

Commit a40a286

Browse files
garethsbBillyONeal
authored andcommitted
Missed one defence against no NOMINMAX in bed8fa5. (#1202)
1 parent 6f602be commit a40a286

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Release/src/http/client/http_client_asio.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -1444,8 +1444,8 @@ class asio_context final : public request_context, public std::enable_shared_fro
14441444
}
14451445
}
14461446

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

14511451
if (!this->handle_compression())

0 commit comments

Comments
 (0)