2008-01-19 Alp Toker <alp@atoker.com>
authoralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 18:34:01 +0000 (18:34 +0000)
committeralp@webkit.org <alp@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 19 Jan 2008 18:34:01 +0000 (18:34 +0000)
        Reviewed by Mark Rowe.

        Remove any fragment part from the URL to be requested just before
        passing it to curl, otherwise curl sends it as part of the HTTP/local
        file request, causing page loads to fail.

        * platform/network/curl/ResourceHandleManager.cpp:
        (WebCore::ResourceHandleManager::startJob):

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

WebCore/ChangeLog
WebCore/platform/network/curl/ResourceHandleManager.cpp

index f602048e81c9c9a2465ea51b3775b132cd9017a3..33d50a0f03e150a24fc754f0d99fb530416650f1 100644 (file)
@@ -1,3 +1,14 @@
+2008-01-19  Alp Toker  <alp@atoker.com>
+
+        Reviewed by Mark Rowe.
+
+        Remove any fragment part from the URL to be requested just before
+        passing it to curl, otherwise curl sends it as part of the HTTP/local
+        file request, causing page loads to fail.
+
+        * platform/network/curl/ResourceHandleManager.cpp:
+        (WebCore::ResourceHandleManager::startJob):
+
 2008-01-19  Jan Michael Alonzo  <jmalonzo@unpluggable.com>
 
         Reviewed by Alp Toker.
index eff0e296c3419a557d3afd3de3c6089ba032d819..1f43164babdd4b5dbfd7c7ed4841f41245664c62 100644 (file)
@@ -512,6 +512,9 @@ void ResourceHandleManager::startJob(ResourceHandle* job)
         return;
     }
 
+    // Remove any fragment part, otherwise curl will send it as part of the request.
+    kurl.setRef("");
+
     ResourceHandleInternal* d = job->getInternal();
     DeprecatedString url = kurl.deprecatedString();