mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fix #2109
This commit is contained in:
1 parent
c765584e6b
commit
33acccb346
2 files changed
+6
-2
No files matched your search
@@ -4389,7 +4389,8 @@ inline bool read_content_without_length(Stream &strm,
|
||||
uint64_t r = 0;
|
||||
for (;;) {
|
||||
auto n = strm.read(buf, CPPHTTPLIB_RECV_BUFSIZ);
|
||||
if (n <= 0) { return false; }
|
||||
if (n == 0) { return true; }
|
||||
if (n < 0) { return false; }
|
||||
|
||||
if (!out(buf, static_cast<size_t>(n), r, 0)) { return false; }
|
||||
r += static_cast<uint64_t>(n);
|
||||
@@ -10492,4 +10493,4 @@ inline SSL_CTX *Client::ssl_context() const {
|
||||
|
||||
} // namespace httplib
|
||||
|
||||
#endif // CPPHTTPLIB_HTTPLIB_H
|
||||
#endif // CPPHTTPLIB_HTTPLIB_H
|
||||
Reference in new issue
Block a user