From 4f066258f27dcfe0f3c9ab63a675a4cdb15c98ca Mon Sep 17 00:00:00 2001 From: Nitromelon Date: Tue, 21 Mar 2023 14:51:37 +0800 Subject: [PATCH] Temporary fix dead HttpClient. (#1542) --- lib/src/HttpClientImpl.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/src/HttpClientImpl.cc b/lib/src/HttpClientImpl.cc index 7ae89827..c627a6dc 100644 --- a/lib/src/HttpClientImpl.cc +++ b/lib/src/HttpClientImpl.cc @@ -89,6 +89,9 @@ void HttpClientImpl::createTcpClient() } auto resp = responseParser->responseImpl(); responseParser->reset(); + // temporary fix of dead tcpClientPtr_ + // TODO: fix HttpResponseParser when content-length absence + thisPtr->tcpClientPtr_.reset(); thisPtr->handleResponse(resp, std::move(firstReq), connPtr); if (!thisPtr->requestsBuffer_.empty()) {