Fixes #293: added workaround for MSVC max bug

This commit is contained in:
eidheim 2020-04-03 11:10:40 +02:00
commit ebeafc989e
2 changed files with 2 additions and 2 deletions

View file

@ -340,7 +340,7 @@ namespace SimpleWeb {
long timeout_content = 300;
/// Maximum size of request stream buffer. Defaults to architecture maximum.
/// Reaching this limit will result in a message_size error code.
std::size_t max_request_streambuf_size = std::numeric_limits<std::size_t>::max();
std::size_t max_request_streambuf_size = (std::numeric_limits<std::size_t>::max)();
/// IPv4 address in dotted decimal form or IPv6 address in hexadecimal notation.
/// If empty, the address will be any address.
std::string address;