Commit 385c7b2a authored by hausmann's avatar hausmann
Browse files

Moved HTTP header field propagation to QWebNetworkRequest::init.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@22092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent c4e52ee1
......@@ -71,6 +71,11 @@ void QWebNetworkRequest::init(const QString &method, const QUrl &url, const WebC
if (!cookies.isEmpty())
request.setValue(QLatin1String("Cookie"), cookies);
}
const HTTPHeaderMap& loaderHeaders = resourceRequest->httpHeaderFields();
HTTPHeaderMap::const_iterator end = loaderHeaders.end();
for (HTTPHeaderMap::const_iterator it = loaderHeaders.begin(); it != end; ++it)
request.setValue(it->first, it->second);
}
}
......@@ -236,11 +241,6 @@ bool QWebNetworkManager::add(ResourceHandle *handle, QWebNetworkInterface *inter
QUrl qurl = QString(url.url());
job->d->init(handle->method(), qurl, &handle->request());
const HTTPHeaderMap& loaderHeaders = handle->requestHeaders();
HTTPHeaderMap::const_iterator end = loaderHeaders.end();
for (HTTPHeaderMap::const_iterator it = loaderHeaders.begin(); it != end; ++it)
job->d->request.setValue(it->first, it->second);
int id;
// handle and perform a 'POST' request
if (handle->method() == "POST") {
......
2007-06-11 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
Moved HTTP header field propagation to QWebNetworkRequest::init.
* Api/qwebnetworkinterface.cpp:
(QWebNetworkRequest::init):
(QWebNetworkManager::add):
2007-06-11 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment