From 62e6c7cb98d7ad774288f3c1df004d54e4bdbc77 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 17 Feb 2019 13:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dhttp=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=97=B6Transfer-Encoding=3Dchunked=E6=8F=90=E5=89=8D=E6=96=AD?= =?UTF-8?q?=E5=BC=80=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ZLToolKit | 2 +- src/Http/HttpClient.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZLToolKit b/ZLToolKit index 29a74a00..cf4e3425 160000 --- a/ZLToolKit +++ b/ZLToolKit @@ -1 +1 @@ -Subproject commit 29a74a0032a05add2ffc750f90815bcaf461fd69 +Subproject commit cf4e3425fbd1ac8f084bf08243d55c6151dc7bb2 diff --git a/src/Http/HttpClient.cpp b/src/Http/HttpClient.cpp index 0082f874..2c154e9d 100644 --- a/src/Http/HttpClient.cpp +++ b/src/Http/HttpClient.cpp @@ -1,4 +1,4 @@ -/* +/* * MIT License * * Copyright (c) 2016 xiongziliang <771730766@qq.com> @@ -236,7 +236,7 @@ void HttpClient::onSend() { } void HttpClient::onManager() { - if (_aliveTicker.elapsedTime() > 3 * 1000 && _totalBodySize < 0) { + if (_aliveTicker.elapsedTime() > 3 * 1000 && _totalBodySize < 0 && !_chunkedSplitter) { //如果Content-Length未指定 但接收数据超时 //则认为本次http请求完成 onResponseCompleted_l();