summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorBea Lam <bea.lam@nokia.com>2010-12-22 06:12:26 (GMT)
committerBea Lam <bea.lam@nokia.com>2010-12-22 06:12:26 (GMT)
commite50a0ad18c40322ca0c06a11e7dc7b9a82951f16 (patch)
treea3cf46174d036a3a5d8077dd1ef9e92301e44911 /src
parent2d4d125313d79fb80f513952bed675b7126392fd (diff)
downloadQt-e50a0ad18c40322ca0c06a11e7dc7b9a82951f16.zip
Qt-e50a0ad18c40322ca0c06a11e7dc7b9a82951f16.tar.gz
Qt-e50a0ad18c40322ca0c06a11e7dc7b9a82951f16.tar.bz2
XmlListModel requests should set 'Accept' header to 'application/xml'
Task-number: QTBUG-15836 Reviewed-by: Michael Brasser
Diffstat (limited to 'src')
-rw-r--r--src/declarative/util/qdeclarativexmllistmodel.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/util/qdeclarativexmllistmodel.cpp b/src/declarative/util/qdeclarativexmllistmodel.cpp
index 49a12b1..e97cd67 100644
--- a/src/declarative/util/qdeclarativexmllistmodel.cpp
+++ b/src/declarative/util/qdeclarativexmllistmodel.cpp
@@ -924,6 +924,7 @@ void QDeclarativeXmlListModel::reload()
} else {
d->notifyQueryStarted(true);
QNetworkRequest req(d->src);
+ req.setRawHeader("Accept", "application/xml");
d->reply = qmlContext(this)->engine()->networkAccessManager()->get(req);
QObject::connect(d->reply, SIGNAL(finished()), this, SLOT(requestFinished()));
QObject::connect(d->reply, SIGNAL(downloadProgress(qint64,qint64)),