Commit 30e48ce7 authored by lars's avatar lars
Browse files

Work around a bug in Qt's QHttp implementation and

        get web pages to load again.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@23519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 15fafbe4
......@@ -148,8 +148,11 @@ void QWebPage::open(const QWebNetworkRequest &req)
if (!method.isEmpty())
request.setHTTPMethod(method);
foreach (QString key, httpHeader.keys())
request.addHTTPHeaderField(key, httpHeader.value(key));
QList<QPair<QString, QString> > values = httpHeader.values();
for (int i = 0; i < values.size(); ++i) {
const QPair<QString, QString> &val = values.at(i);
request.addHTTPHeaderField(val.first, val.second);
}
if (!postData.isEmpty()) {
WTF::RefPtr<WebCore::FormData> formData = new WebCore::FormData(postData.constData(), postData.size());
......
2007-06-14 Lars Knoll <lars@trolltech.com>
Reviewed by George.
Work around a bug in Qt's QHttp implementation and
get web pages to load again.
* Api/qwebpage.cpp:
(QWebPage::open):
2007-06-13 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