diff options
-rw-r--r-- | src/network/access/qnetworkreplyimpl.cpp | 12 |
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(); |