branch | GCC_SURGE |
changeset 31 | 5daf16870df6 |
parent 25 | e24348a560a6 |
--- a/src/network/access/qhttpnetworkreply.cpp Mon Jun 21 22:38:13 2010 +0100 +++ b/src/network/access/qhttpnetworkreply.cpp Thu Jul 22 16:41:55 2010 +0100 @@ -179,6 +179,9 @@ QByteArray QHttpNetworkReply::readAny() { Q_D(QHttpNetworkReply); + if (d->responseData.bufferCount() == 0) + return QByteArray(); + // we'll take the last buffer, so schedule another read from http if (d->downstreamLimited && d->responseData.bufferCount() == 1) d->connection->d_func()->readMoreLater(this);