diff options
Diffstat (limited to 'rbutil/rbutilqt/base')
-rw-r--r-- | rbutil/rbutilqt/base/httpget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/httpget.cpp b/rbutil/rbutilqt/base/httpget.cpp index 476da87bad..1c879e728a 100644 --- a/rbutil/rbutilqt/base/httpget.cpp +++ b/rbutil/rbutilqt/base/httpget.cpp | |||
@@ -170,7 +170,7 @@ void HttpGet::requestFinished(QNetworkReply* reply) | |||
170 | return; | 170 | return; |
171 | } | 171 | } |
172 | else if(m_lastStatusCode == 200 || | 172 | else if(m_lastStatusCode == 200 || |
173 | (reply->url().isLocalFile() && reply->error() == 0)) { | 173 | (reply->url().scheme() == "file" && reply->error() == 0)) { |
174 | // callers might not be aware if the request is file:// so fake 200. | 174 | // callers might not be aware if the request is file:// so fake 200. |
175 | m_lastStatusCode = 200; | 175 | m_lastStatusCode = 200; |
176 | m_data = reply->readAll(); | 176 | m_data = reply->readAll(); |