1
0
mirror of synced 2025-04-19 00:24:02 +03:00

Update httplib.h (#2030)

fix 'max'
This commit is contained in:
Baiyies 2025-01-26 21:50:10 +08:00 committed by GitHub
parent 929dfbd348
commit d69f144a99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -4457,7 +4457,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
} else {
auto is_invalid_value = false;
auto len = get_header_value_u64(x.headers, "Content-Length",
std::numeric_limits<uint64_t>::max(),
(std::numeric_limits<uint64_t>::max)(),
0, is_invalid_value);
if (is_invalid_value) {