2009-03-12 Xan Lopez <xlopez@igalia.com>
authorxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2009 07:58:03 +0000 (07:58 +0000)
committerxan@webkit.org <xan@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 12 Mar 2009 07:58:03 +0000 (07:58 +0000)
        Reviewed by Alexey Proskuryakov.

        https://bugs.webkit.org/show_bug.cgi?id=24519
        [GTK] Use two argument KURL ctor in ResourceHandleSoup

        Use two argument KURL ctor, the single argument ctor expects its
        input to be the output of a previous KURL::parse call, which is
        not the case here.

        * platform/network/soup/ResourceHandleSoup.cpp:
        (WebCore::fillResponseFromMessage):
        (WebCore::queryInfoCallback):

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

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

index d604d097181403dd5137ed7a95c180198271a6ea..8c166433e33502de8e275fcfacbd281fab472f02 100644 (file)
@@ -1,3 +1,18 @@
+2009-03-12  Xan Lopez  <xlopez@igalia.com>
+
+        Reviewed by Alexey Proskuryakov.
+
+        https://bugs.webkit.org/show_bug.cgi?id=24519
+        [GTK] Use two argument KURL ctor in ResourceHandleSoup
+
+        Use two argument KURL ctor, the single argument ctor expects its
+        input to be the output of a previous KURL::parse call, which is
+        not the case here.
+
+        * platform/network/soup/ResourceHandleSoup.cpp:
+        (WebCore::fillResponseFromMessage):
+        (WebCore::queryInfoCallback):
+
 2009-03-11  Jon Honeycutt  <jhoneycutt@apple.com>
 
         Fix for <rdar://6418681>
index e7d104ddb204941854928d1824fc59fb7fc4da95..c87ec5d31c8a03366814be59a7f65d1c40d10556 100644 (file)
@@ -161,7 +161,7 @@ static void fillResponseFromMessage(SoupMessage* msg, ResourceResponse* response
 
     String contentType = soup_message_headers_get(msg->response_headers, "Content-Type");
     char* uri = soup_uri_to_string(soup_message_get_uri(msg), false);
-    response->setUrl(KURL(uri));
+    response->setUrl(KURL(KURL(), uri));
     g_free(uri);
     response->setMimeType(extractMIMETypeFromMediaType(contentType));
     response->setTextEncodingName(extractCharsetFromMediaType(contentType));
@@ -734,7 +734,7 @@ static void queryInfoCallback(GObject* source, GAsyncResult* res, gpointer)
     ResourceResponse response;
 
     char* uri = g_file_get_uri(d->m_gfile);
-    response.setUrl(KURL(uri));
+    response.setUrl(KURL(KURL(), uri));
     g_free(uri);
 
     GError *error = 0;