Commit 088e3448 authored by hausmann's avatar hausmann
Browse files

Fix http headers for POST.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 18125c04
...@@ -213,8 +213,7 @@ bool QWebNetworkManager::add(ResourceHandle *handle) ...@@ -213,8 +213,7 @@ bool QWebNetworkManager::add(ResourceHandle *handle)
int id; int id;
// handle and perform a 'POST' request // handle and perform a 'POST' request
if (handle->method() == "POST") { if (handle->method() == "POST") {
job->d->request.setValue(QLatin1String("PropagateHttpHeader"), QLatin1String("true")); job->d->request.setValue(QLatin1String("Content-Type"), QLatin1String("application/x-www-form-urlencoded"));
job->d->request.setValue(QLatin1String("content-type"), QLatin1String("Content-Type: application/x-www-form-urlencoded"));
DeprecatedString pd = handle->postData()->flattenToString().deprecatedString(); DeprecatedString pd = handle->postData()->flattenToString().deprecatedString();
job->d->postData = QByteArray(pd.ascii(), pd.length()); job->d->postData = QByteArray(pd.ascii(), pd.length());
......
2007-05-22 Simon Hausmann <hausmann@kde.org>
Reviewed by Lars.
* Api/qwebnetworkinterface.cpp:
(QWebNetworkManager::add): Fix http headers for POST.
2007-05-21 Lars Knoll <lars@trolltech.com> 2007-05-21 Lars Knoll <lars@trolltech.com>
Reviewed by Simon Reviewed by Simon
......
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