Commit e446b156 authored by slewis@apple.com's avatar slewis@apple.com

2008-01-25 U-SLEWIS-WIN\Stephanie <slewis@apple.com>

         Reviewed by Tim.

         expand workaround for <rdar://5695848> to include js files so that the
         web inspector can work

         * platform/network/cf/ResourceResponseCFNet.cpp:
         (WebCore::ResourceResponse::doUpdateResourceResponse):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9b24ce2c
2008-01-25 U-SLEWIS-WIN\Stephanie <slewis@apple.com>
Reviewed by Tim.
expand workaround for <rdar://5695848> to include js files so that the
web inspector can work
* platform/network/cf/ResourceResponseCFNet.cpp:
(WebCore::ResourceResponse::doUpdateResourceResponse):
2008-01-25 Antti Koivisto <antti@apple.com>
Reviewed by Adele.
......@@ -104,12 +104,15 @@ void ResourceResponse::doUpdateResourceResponse()
static const String htmlExt(".html");
static const String xmlExt(".xml");
static const String svgExt(".svg");
static const String jsExt(".js");
if (path.endsWith(xhtmlExt, false))
m_mimeType = "application/xhtml+xml";
else if (path.endsWith(htmlExt, false))
m_mimeType = "text/html";
else if (path.endsWith(xmlExt, false))
m_mimeType = "text/xml";
else if (path.endsWith(jsExt, false))
m_mimeType = "text/javascript";
else if (path.endsWith(svgExt, false))
m_mimeType = "image/svg+xml";
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment