Skip to content

Commit fa76515

Browse files
ekigwanadeanberris
authored andcommitted
content_length type was std::size_t and was changed to long long in (cpp-netlib#753)
commit f8ff77d. It is also initialized to -1 in parse_headers_real(...). Signed-off-by: Edward Kigwana <ekigwana@gmail.com>
1 parent f872859 commit fa76515

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

boost/network/protocol/http/client/connection/async_protocol_handler.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,9 +348,9 @@ struct http_async_protocol_handler {
348348
}
349349
return false;
350350
}
351-
351+
352352
inline bool parse_content_length_complete() const {
353-
return this->partial_parsed.length() >= this-> content_length;
353+
return static_cast<std::ptrdiff_t>(this->partial_parsed.length()) >= this->content_length;
354354
}
355355

356356
bool parse_chunk_encoding_complete() const {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy