summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/httpget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'rbutil/rbutilqt/httpget.cpp')
-rw-r--r--rbutil/rbutilqt/httpget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/rbutil/rbutilqt/httpget.cpp b/rbutil/rbutilqt/httpget.cpp
index fcc2d4163c..a1385c5755 100644
--- a/rbutil/rbutilqt/httpget.cpp
+++ b/rbutil/rbutilqt/httpget.cpp
@@ -25,13 +25,14 @@
25 25
26QDir HttpGet::m_globalCache; //< global cach path value for new objects 26QDir HttpGet::m_globalCache; //< global cach path value for new objects
27QUrl HttpGet::m_globalProxy; //< global proxy value for new objects 27QUrl HttpGet::m_globalProxy; //< global proxy value for new objects
28bool HttpGet::m_globalDumbCache = false; //< globally set cache "dumb" mode
28 29
29HttpGet::HttpGet(QObject *parent) 30HttpGet::HttpGet(QObject *parent)
30 : QObject(parent) 31 : QObject(parent)
31{ 32{
32 outputToBuffer = true; 33 outputToBuffer = true;
33 m_cached = false; 34 m_cached = false;
34 m_noHeaderCheck = false; 35 m_dumbCache = m_globalDumbCache;
35 getRequest = -1; 36 getRequest = -1;
36 // if a request is cancelled before a reponse is available return some 37 // if a request is cancelled before a reponse is available return some
37 // hint about this in the http response instead of nonsense. 38 // hint about this in the http response instead of nonsense.
@@ -199,7 +200,7 @@ bool HttpGet::getFile(const QUrl &url)
199 m_hash = QCryptographicHash::hash(url.toEncoded(), QCryptographicHash::Md5).toHex(); 200 m_hash = QCryptographicHash::hash(url.toEncoded(), QCryptographicHash::Md5).toHex();
200 m_path = QString(QUrl::toPercentEncoding(url.path(), "/")); 201 m_path = QString(QUrl::toPercentEncoding(url.path(), "/"));
201 202
202 if(m_noHeaderCheck || !m_usecache) { 203 if(m_dumbCache || !m_usecache) {
203 getFileFinish(); 204 getFileFinish();
204 } 205 }
205 else { 206 else {