summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-11 00:27:32 (GMT)
committerAaron McCarthy <aaron.mccarthy@nokia.com>2010-02-11 00:27:32 (GMT)
commit20cffd52ab81d01ca0a45058dfa894df9ce26c5a (patch)
treea9af07d02c01a5d2113dfb5415c094d371cef310
parent47b96ccf100da33910cbc534035c00aa4b2b533d (diff)
downloadQt-20cffd52ab81d01ca0a45058dfa894df9ce26c5a.zip
Qt-20cffd52ab81d01ca0a45058dfa894df9ce26c5a.tar.gz
Qt-20cffd52ab81d01ca0a45058dfa894df9ce26c5a.tar.bz2
Move check for range header support to before deleting backend.
-rw-r--r--src/network/access/qnetworkreplyimpl.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/network/access/qnetworkreplyimpl.cpp b/src/network/access/qnetworkreplyimpl.cpp
index f4e8264..70bf238 100644
--- a/src/network/access/qnetworkreplyimpl.cpp
+++ b/src/network/access/qnetworkreplyimpl.cpp
@@ -829,6 +829,12 @@ bool QNetworkReplyImplPrivate::migrateBackend()
return false;
}
+ RawHeadersList::ConstIterator it = findRawHeader("Accept-Ranges");
+ if (it == rawHeaders.constEnd() || it->second == "none") {
+ qDebug() << "Range header not supported by server/resource.";
+ return false;
+ }
+
qDebug() << "Need to check for only cacheable content.";
// stop both upload and download
@@ -844,12 +850,6 @@ bool QNetworkReplyImplPrivate::migrateBackend()
backend = 0;
}
- RawHeadersList::ConstIterator it = findRawHeader("Accept-Ranges");
- if (it == rawHeaders.constEnd() || it->second == "none") {
- qDebug() << "Range header not supported by server/resource.";
- return false;
- }
-
cookedHeaders.clear();
rawHeaders.clear();