diff options
author | Bea Lam <bea.lam@nokia.com> | 2010-12-22 06:12:26 (GMT) |
---|---|---|
committer | Bea Lam <bea.lam@nokia.com> | 2010-12-22 06:12:26 (GMT) |
commit | e50a0ad18c40322ca0c06a11e7dc7b9a82951f16 (patch) | |
tree | a3cf46174d036a3a5d8077dd1ef9e92301e44911 /src/declarative/util/qdeclarativexmllistmodel.cpp | |
parent | 2d4d125313d79fb80f513952bed675b7126392fd (diff) | |
download | Qt-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/declarative/util/qdeclarativexmllistmodel.cpp')
-rw-r--r-- | src/declarative/util/qdeclarativexmllistmodel.cpp | 1 |
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)), |