From 696b55195f1ad40a077683dbc533c73baf1536ee Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 27 Nov 2009 15:10:43 +1000 Subject: Handle more HTML non-errors --- src/declarative/qml/qmlxmlhttprequest.cpp | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/declarative/qml/qmlxmlhttprequest.cpp b/src/declarative/qml/qmlxmlhttprequest.cpp index 642c6de..216db6e 100644 --- a/src/declarative/qml/qmlxmlhttprequest.cpp +++ b/src/declarative/qml/qmlxmlhttprequest.cpp @@ -1208,14 +1208,16 @@ void QmlXMLHttpRequest::error(QNetworkReply::NetworkError error) m_request = QNetworkRequest(); destroyNetwork(); - if (error != QNetworkReply::ContentAccessDenied && - error != QNetworkReply::ContentOperationNotPermittedError && - error != QNetworkReply::ContentNotFoundError) { - m_errorFlag = true; - } else { + if (error == QNetworkReply::ContentAccessDenied || + error == QNetworkReply::ContentOperationNotPermittedError || + error == QNetworkReply::ContentNotFoundError || + error == QNetworkReply::AuthenticationRequiredError || + error == QNetworkReply::ContentReSendError) { m_state = Loading; dispatchCallback(); - } + } else { + m_errorFlag = true; + } m_state = Done; dispatchCallback(); -- cgit v0.12