Fix http headers for POST.
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2007 07:31:11 +0000 (07:31 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 22 May 2007 07:31:11 +0000 (07:31 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21638 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.cpp
WebKitQt/ChangeLog

index 3f6fe813b77d86c73036078a0091e35402940a9c..8ec89a83ecb82d307e171010b15164f783323c4b 100644 (file)
@@ -213,8 +213,7 @@ bool QWebNetworkManager::add(ResourceHandle *handle)
     int id;
     // handle and perform a 'POST' request
     if (handle->method() == "POST") {
-        job->d->request.setValue(QLatin1String("PropagateHttpHeader"), QLatin1String("true"));
-        job->d->request.setValue(QLatin1String("content-type"), QLatin1String("Content-Type: application/x-www-form-urlencoded"));
+        job->d->request.setValue(QLatin1String("Content-Type"), QLatin1String("application/x-www-form-urlencoded"));
 
         DeprecatedString pd = handle->postData()->flattenToString().deprecatedString();
         job->d->postData = QByteArray(pd.ascii(), pd.length());
index 80fece5049c4a8a6985157dee138dee3d4caa84a..cbe891ebba48d029ba891aa765d3b4ecdd28aa97 100644 (file)
@@ -1,3 +1,10 @@
+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>
 
         Reviewed by Simon