2006-10-20 Nikolas Zimmermann <zimmermann@kde.org>
authorandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2006 20:07:35 +0000 (20:07 +0000)
committerandersca <andersca@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Oct 2006 20:07:35 +0000 (20:07 +0000)
        Reviewed and landed by Anders.

        Fix regression introduced during the ResourceLoader transition (Maciej's rewrite).

        * platform/qt/ResourceLoaderManager.cpp:
        (WebCore::ResourceLoaderManager::add):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17170 268f45cc-cd09-0410-ab3c-d52691b4dbfc

WebCore/ChangeLog
WebCore/platform/qt/ResourceLoaderManager.cpp

index 2906bfa8d9d0fe518eb46495b788221eae2effa6..02e703986155545accd20be48c3a0ca298d6ee2c 100644 (file)
@@ -1,3 +1,12 @@
+2006-10-20  Nikolas Zimmermann  <zimmermann@kde.org>
+
+        Reviewed and landed by Anders.
+
+        Fix regression introduced during the ResourceLoader transition (Maciej's rewrite).
+
+        * platform/qt/ResourceLoaderManager.cpp:
+        (WebCore::ResourceLoaderManager::add):
+
 2006-10-20  Darin Adler  <darin@apple.com>
 
         Reviewed by Adele.
index f4bef87fcf36c8e0f1eaa58eff0b1943a79967d1..e29bd9a35209d61e01665a360ba981af40bac584 100644 (file)
@@ -161,16 +161,15 @@ void ResourceLoaderManager::add(ResourceLoader* job, FrameQtClient* frameClient)
 
     KIO::Job* kioJob = 0;
 
-    if (job->method() == "GET")
-        kioJob = KIO::get(KUrl(url), false, false);
-    else if (job->method() == "POST") {
+    if (job->method() == "POST") {
         DeprecatedString postData = job->postData().flattenToString().deprecatedString();
         QByteArray postDataArray(postData.ascii(), postData.length());
 
         kioJob = KIO::http_post(KUrl(url), postDataArray, false);
         kioJob->addMetaData("PropagateHttpHeader", "true");
         kioJob->addMetaData("content-type", "Content-Type: application/x-www-form-urlencoded");
-    }
+    } else
+        kioJob = KIO::get(KUrl(url), false, false);
 
     Q_ASSERT(kioJob != 0);