diff options
author | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-25 13:45:07 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-06-25 14:17:37 (GMT) |
commit | d5b75962ee2e22b5a6b061430f936fc663d7122b (patch) | |
tree | 03a939983a9e946af8612a258f0dd043646fe5cf /src/network/access/qhttpnetworkreply.cpp | |
parent | 553fb1b2e636cf14a193b1ca15bd08f755a452b3 (diff) | |
download | Qt-d5b75962ee2e22b5a6b061430f936fc663d7122b.zip Qt-d5b75962ee2e22b5a6b061430f936fc663d7122b.tar.gz Qt-d5b75962ee2e22b5a6b061430f936fc663d7122b.tar.bz2 |
QNAM HTTP Code: Uncluttering functions
Uncluttered and duplicated some function to make it more clear
what is happening. Was a bit confusing before if compressed data
or uncompressed data is handled.
Reviewed-by: Peter Hartmann
Diffstat (limited to 'src/network/access/qhttpnetworkreply.cpp')
-rw-r--r-- | src/network/access/qhttpnetworkreply.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/access/qhttpnetworkreply.cpp b/src/network/access/qhttpnetworkreply.cpp index c4d4a9c..47fb6d1 100644 --- a/src/network/access/qhttpnetworkreply.cpp +++ b/src/network/access/qhttpnetworkreply.cpp @@ -162,7 +162,7 @@ qint64 QHttpNetworkReply::bytesAvailable() const { Q_D(const QHttpNetworkReply); if (d->connection) - return d->connection->d_func()->bytesAvailable(*this); + return d->connection->d_func()->uncompressedBytesAvailable(*this); else return -1; } @@ -172,7 +172,7 @@ QByteArray QHttpNetworkReply::read(qint64 maxSize) Q_D(QHttpNetworkReply); QByteArray data; if (d->connection) - d->connection->d_func()->read(*this, data, maxSize, false); + d->connection->d_func()->read(*this, data, maxSize); return data; } |