From 80ecd2098e16eb4ccf679a49382397024557568c Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Mon, 24 Jan 2022 10:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BC=96=E8=AF=91=E8=AD=A6?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpClient.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/HttpClient.cpp b/src/Http/HttpClient.cpp index 775cef8a..18db3f3b 100644 --- a/src/Http/HttpClient.cpp +++ b/src/Http/HttpClient.cpp @@ -327,7 +327,7 @@ void HttpClient::onResponseCompleted_l(const SockException &ex) { } //可疑的失败 - if (_total_body_size > 0 && _recved_body_size >= _total_body_size) { + if (_total_body_size > 0 && _recved_body_size >= (size_t)_total_body_size) { //回复header中有content-length信息,那么收到的body大于等于声明值则认为成功 onResponseCompleted(SockException(Err_success, "success")); return;