Fix multipart HTTP POSTs in the Qt port
authorhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2007 14:10:38 +0000 (14:10 +0000)
committerhausmann <hausmann@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 24 May 2007 14:10:38 +0000 (14:10 +0000)
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@21709 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebKitQt/Api/qwebnetworkinterface.cpp
WebKitQt/ChangeLog

index 94af1d8dcdedfff1a89770ede9288a60cb20f445..fb61c20a6abcd77facdd7807971455422d83b878 100644 (file)
@@ -234,8 +234,6 @@ bool QWebNetworkManager::add(ResourceHandle *handle, QWebNetworkInterface *inter
     int id;
     // handle and perform a 'POST' request
     if (handle->method() == "POST") {
-        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());
         job->d->request.setValue(QLatin1String("content-length"), QString::number(job->d->postData.size()));
index 5f0e2376beebf9d970b2ea8f06f3a922f9aab29f..ed139abe6d3ed41b4ae39219f71e751bad2b79cd 100644 (file)
@@ -1,3 +1,14 @@
+2007-05-24  Simon Hausmann  <hausmann@kde.org>
+
+        Reviewed by Zack.
+
+        Fix multipart/form-data HTTP POSTs. The content-type wasn't set
+        correctly. Fortunately WebCore does it already, so there's no need
+        for us to do it since we already transfer all HTTP header fields :)
+
+        * Api/qwebnetworkinterface.cpp:
+        (QWebNetworkManager::add):
+
 2007-05-23  Simon Hausmann  <hausmann@kde.org>
 
         Reviewed by Zack, idea from Lars.