myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat...@apache.org
Subject svn commit: r691381 - /myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java
Date Tue, 02 Sep 2008 20:58:51 GMT
Author: matzew
Date: Tue Sep  2 13:58:50 2008
New Revision: 691381

URL: http://svn.apache.org/viewvc?rev=691381&view=rev
Log:
TRINIDAD-1208 - DOCUMENT TYPE FOR JAVASCRIPT IS MISSING

Thanks to Tadashi Enomori for his patch

Modified:
    myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java

Modified: myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java
URL: http://svn.apache.org/viewvc/myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java?rev=691381&r1=691380&r2=691381&view=diff
==============================================================================
--- myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java
(original)
+++ myfaces/trinidad/branches/1.2.9.1-branch/trinidad-api/src/main/java/org/apache/myfaces/trinidad/webapp/ResourceServlet.java
Tue Sep  2 13:58:50 2008
@@ -439,7 +439,9 @@
       String resourcePath = url.getPath();
       if(resourcePath.endsWith(".css"))
         contentType = "text/css";
-      else
+      else if(resourcePath.endsWith(".js"))
+        contentType = "application/x-javascript";
+       else
         contentType = getServletContext().getMimeType(resourcePath);
     }
     response.setContentType(contentType);



Mime
View raw message