summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativexmlhttprequest.cpp
diff options
context:
space:
mode:
authorWarwick Allison <warwick.allison@nokia.com>2010-03-10 05:04:07 (GMT)
committerWarwick Allison <warwick.allison@nokia.com>2010-03-10 05:04:07 (GMT)
commit53079ad30ba53fc7b3f53fd460d48cb5c5dcf0b8 (patch)
tree13fd9761e8ec9135a9630335027d9e2dcc11c09f /src/declarative/qml/qdeclarativexmlhttprequest.cpp
parent27efe3efc0859019e465955961ff699c9c54df09 (diff)
downloadQt-53079ad30ba53fc7b3f53fd460d48cb5c5dcf0b8.zip
Qt-53079ad30ba53fc7b3f53fd460d48cb5c5dcf0b8.tar.gz
Qt-53079ad30ba53fc7b3f53fd460d48cb5c5dcf0b8.tar.bz2
Technically, Location can be relative (never is though...)
Diffstat (limited to 'src/declarative/qml/qdeclarativexmlhttprequest.cpp')
-rw-r--r--src/declarative/qml/qdeclarativexmlhttprequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qdeclarativexmlhttprequest.cpp b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
index 87cab85..58e67fa 100644
--- a/src/declarative/qml/qdeclarativexmlhttprequest.cpp
+++ b/src/declarative/qml/qdeclarativexmlhttprequest.cpp
@@ -1245,7 +1245,7 @@ void QDeclarativeXMLHttpRequest::finished()
if (m_redirectCount < XMLHTTPREQUEST_MAXIMUM_REDIRECT_RECURSION) {
QVariant redirect = m_network->attribute(QNetworkRequest::RedirectionTargetAttribute);
if (redirect.isValid()) {
- QUrl url = redirect.toUrl();
+ QUrl url = m_network->url().resolved(redirect.toUrl());
destroyNetwork();
requestFromUrl(url);
return;