Temporary fix dead HttpClient. (#1542)
This commit is contained in:
parent
ceab5f3037
commit
4f066258f2
|
@ -89,6 +89,9 @@ void HttpClientImpl::createTcpClient()
|
||||||
}
|
}
|
||||||
auto resp = responseParser->responseImpl();
|
auto resp = responseParser->responseImpl();
|
||||||
responseParser->reset();
|
responseParser->reset();
|
||||||
|
// temporary fix of dead tcpClientPtr_
|
||||||
|
// TODO: fix HttpResponseParser when content-length absence
|
||||||
|
thisPtr->tcpClientPtr_.reset();
|
||||||
thisPtr->handleResponse(resp, std::move(firstReq), connPtr);
|
thisPtr->handleResponse(resp, std::move(firstReq), connPtr);
|
||||||
if (!thisPtr->requestsBuffer_.empty())
|
if (!thisPtr->requestsBuffer_.empty())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue