Avoid disabling http pipelining when http 200 response arrives.

master
Beq 2025-05-28 23:48:10 +01:00
parent 7256463949
commit a40fefa4f4
1 changed files with 2 additions and 1 deletions

View File

@ -432,7 +432,8 @@ bool HttpLibcurl::completeRequest(CURLM * multi_handle, CURL * handle, CURLcode
}
if (!bFailed && (op->mReqOffset || op->mReqLength))
{
if (op->mReqOffset != op->mReplyOffset || (op->mReqLength && op->mReqLength < op->mReplyLength))
// We should only check the offset and length if we are handling a partial content request.
if (op->mStatus == HttpStatus(HTTP_PARTIAL_CONTENT) && op->mReqOffset != op->mReplyOffset || (op->mReqLength && op->mReqLength < op->mReplyLength))
{
std::stringstream strm;
strm << "HTTP pipelining possibly out of sync, request wanted: " << op->mReqOffset << "-";