2009-03-12 Xan Lopez <xlopez@igalia.com>
[WebKit-https.git] / WebCore / platform / network / soup / ResourceHandleSoup.cpp
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;