equal
deleted
inserted
replaced
177 } |
177 } |
178 |
178 |
179 QByteArray QHttpNetworkReply::readAny() |
179 QByteArray QHttpNetworkReply::readAny() |
180 { |
180 { |
181 Q_D(QHttpNetworkReply); |
181 Q_D(QHttpNetworkReply); |
|
182 if (d->responseData.bufferCount() == 0) |
|
183 return QByteArray(); |
|
184 |
182 // we'll take the last buffer, so schedule another read from http |
185 // we'll take the last buffer, so schedule another read from http |
183 if (d->downstreamLimited && d->responseData.bufferCount() == 1) |
186 if (d->downstreamLimited && d->responseData.bufferCount() == 1) |
184 d->connection->d_func()->readMoreLater(this); |
187 d->connection->d_func()->readMoreLater(this); |
185 return d->responseData.read(); |
188 return d->responseData.read(); |
186 } |
189 } |