2009-02-18 Zan Dobersek <zandobersek@gmail.com>
authorkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Feb 2009 16:45:35 +0000 (16:45 +0000)
committerkov@webkit.org <kov@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Feb 2009 16:45:35 +0000 (16:45 +0000)
        Rubber-stamped by Holger Hans Peter Freyther.

        Allow POST method for local requests.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::ResourceHandle::startGio):

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

WebCore/ChangeLog
WebCore/platform/network/soup/ResourceHandleSoup.cpp

index 4379690..66ca3c4 100644 (file)
@@ -1,3 +1,12 @@
+2009-02-18  Zan Dobersek  <zandobersek@gmail.com>
+
+        Rubber-stamped by Holger Hans Peter Freyther.
+
+        Allow POST method for local requests.
+
+        * platform/network/soup/ResourceHandleSoup.cpp:
+        (WebCore::ResourceHandle::startGio):
+
 2009-02-18  Gustavo Noronha Silva  <gns@gnome.org>
 
         Reviewed by Holger Hans Peter Freyther.
index cc4713b..95c8385 100644 (file)
@@ -736,7 +736,7 @@ static void queryInfoCallback(GObject* source, GAsyncResult* res, gpointer)
 
 bool ResourceHandle::startGio(KURL url)
 {
-    if (request().httpMethod() != "GET") {
+    if (request().httpMethod() != "GET" && request().httpMethod() != "POST") {
         ResourceError error("webkit-network-error", ERROR_BAD_NON_HTTP_METHOD, url.string(), request().httpMethod());
         d->client()->didFail(this, error);
         return false;