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

Run clang-format (#2037)

This commit is contained in:
Florian Albrechtskirchinger 2025-02-03 04:32:33 +01:00 committed by GitHub
parent 282f2feb77
commit 9bbb4741b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -219,7 +219,7 @@ using socket_t = SOCKET;
#include <pthread.h> #include <pthread.h>
#include <sys/mman.h> #include <sys/mman.h>
#ifndef __VMS #ifndef __VMS
#include <sys/select.h> #include <sys/select.h>
#endif #endif
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/un.h> #include <sys/un.h>
@ -4458,9 +4458,9 @@ bool read_content(Stream &strm, T &x, size_t payload_max_length, int &status,
ret = read_content_without_length(strm, out); ret = read_content_without_length(strm, out);
} else { } else {
auto is_invalid_value = false; auto is_invalid_value = false;
auto len = get_header_value_u64(x.headers, "Content-Length", auto len = get_header_value_u64(
(std::numeric_limits<uint64_t>::max)(), x.headers, "Content-Length",
0, is_invalid_value); (std::numeric_limits<uint64_t>::max)(), 0, is_invalid_value);
if (is_invalid_value) { if (is_invalid_value) {
ret = false; ret = false;