Skip to content

Commit d69f144

Browse files
authored
Update httplib.h (#2030)
fix 'max'
1 parent 929dfbd commit d69f144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

httplib.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4457,7 +4457,7 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
44574457
} else {
44584458
auto is_invalid_value = false;
44594459
auto len = get_header_value_u64(x.headers, "Content-Length",
4460-
std::numeric_limits<uint64_t>::max(),
4460+
(std::numeric_limits<uint64_t>::max)(),
44614461
0, is_invalid_value);
44624462

44634463
if (is_invalid_value) {

0 commit comments

Comments
 (0)