From 975c11b74cbcfba33d80c33cbb348b8b11498e4c Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sat, 22 May 2021 10:22:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81http=E5=93=8D=E5=BA=94?= =?UTF-8?q?=E6=97=A0content-length=E5=AD=97=E6=AE=B5=E7=9A=84=E6=83=85?= =?UTF-8?q?=E5=86=B5:#850?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Http/HttpRequester.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/HttpRequester.cpp b/src/Http/HttpRequester.cpp index 2ac7efe2..37ccadd5 100644 --- a/src/Http/HttpRequester.cpp +++ b/src/Http/HttpRequester.cpp @@ -21,8 +21,7 @@ HttpRequester::~HttpRequester(){ ssize_t HttpRequester::onResponseHeader(const string &status,const HttpHeader &headers) { _strRecvBody.clear(); - //无Content-Length字段时默认后面没有content - return 0; + return HttpClientImp::onResponseHeader(status, headers); } void HttpRequester::onResponseBody(const char *buf,size_t size,size_t recvedSize,size_t totalSize) {