You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2009/07/13 09:38:22 UTC

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

Author: lofwyr
Date: Mon Jul 13 07:38:21 2009
New Revision: 793476

URL: http://svn.apache.org/viewvc?rev=793476&view=rev
Log:
TOBAGO-774: support for HTML mime type

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=793476&r1=793475&r2=793476&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 Mon Jul 13 07:38:21 2009
@@ -17,10 +17,6 @@
  * limitations under the License.
  */
 
-/**
- * Date: 10.05.2007
- * Time: 18:01:46
- */
 public class MimeTypeUtils {
 
   private MimeTypeUtils() {
@@ -41,7 +37,7 @@
       return "text/css";
     } else if (file.endsWith(".ico")) {
       return "image/vnd.microsoft.icon";
-    } else if (file.endsWith("blank.html")) {
+    } else if (file.endsWith(".html")) {
       return "text/html";
     }
     return null;