From 476dae5ed319b975c486869bf094f1f3ce105caa Mon Sep 17 00:00:00 2001 From: Edward Kigwana Date: Thu, 6 Apr 2017 14:19:47 +0000 Subject: [PATCH] content_length type was std::size_t and was changed to long long in commit f8ff77d3ee795c32c51b904583e1b04a8b7a071e. It is also initialized to -1 in parse_headers_real(...). Signed-off-by: Edward Kigwana --- .../http/client/connection/async_protocol_handler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/boost/network/protocol/http/client/connection/async_protocol_handler.hpp b/boost/network/protocol/http/client/connection/async_protocol_handler.hpp index 44f01dac1..1be0f5584 100644 --- a/boost/network/protocol/http/client/connection/async_protocol_handler.hpp +++ b/boost/network/protocol/http/client/connection/async_protocol_handler.hpp @@ -348,9 +348,9 @@ struct http_async_protocol_handler { } return false; } - + inline bool parse_content_length_complete() const { - return this->partial_parsed.length() >= this-> content_length; + return static_cast(this->partial_parsed.length()) >= this->content_length; } bool parse_chunk_encoding_complete() const {