diff --git a/src/network/access/qhttpprotocolhandler.cpp b/src/network/access/qhttpprotocolhandler.cpp index 69afd35b578..c4ea73ce9d8 100644 --- a/src/network/access/qhttpprotocolhandler.cpp +++ b/src/network/access/qhttpprotocolhandler.cpp @@ -216,6 +216,8 @@ void QHttpProtocolHandler::_q_receiveReply() } case QHttpNetworkReplyPrivate::AllDoneState: m_channel->allDone(); + if (state == QHttpNetworkReplyPrivate::AllDoneState) + lastBytes = bytes; // No need to loop more just to call m_channel->allDone again. break; default: break;