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();