[curl] Can't load file:// URL with a URL fragment identifier
[WebKit-https.git] / Source / WebCore / platform / network / curl / CurlRequest.cpp
index 9b7ea53..c03b0c2 100644 (file)
@@ -504,7 +504,7 @@ void CurlRequest::invokeDidReceiveResponseForFile(URL& url)
     m_response.statusCode = 200;
 
     // Determine the MIME type based on the path.
     m_response.statusCode = 200;
 
     // Determine the MIME type based on the path.
-    m_response.headers.append(String("Content-Type: " + MIMETypeRegistry::getMIMETypeForPath(m_response.url)));
+    m_response.headers.append(String("Content-Type: " + MIMETypeRegistry::getMIMETypeForPath(m_response.url.path())));
 
     if (!m_isSyncRequest) {
         // DidReceiveResponse must not be called immediately
 
     if (!m_isSyncRequest) {
         // DidReceiveResponse must not be called immediately