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