You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2010/12/21 09:01:54 UTC

svn commit: r1051406 - /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java

Author: weber
Date: Tue Dec 21 08:01:54 2010
New Revision: 1051406

URL: http://svn.apache.org/viewvc?rev=1051406&view=rev
Log:
(TOBAGO-960) *.htm files are not identified as mime-type text/html
<https://issues.apache.org/jira/browse/TOBAGO-960>

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java?rev=1051406&r1=1051405&r2=1051406&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/util/MimeTypeUtils.java Tue Dec 21 08:01:54 2010
@@ -37,7 +37,7 @@ public class MimeTypeUtils {
       return "text/css";
     } else if (file.endsWith(".ico")) {
       return "image/vnd.microsoft.icon";
-    } else if (file.endsWith(".html")) {
+    } else if (file.endsWith(".html") || file.endsWith(".htm")) {
       return "text/html";
     }
     return null;