clerezza-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject svn commit: r924281 - /incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java
Date Wed, 17 Mar 2010 13:22:46 GMT
Author: reto
Date: Wed Mar 17 13:22:46 2010
New Revision: 924281

URL: http://svn.apache.org/viewvc?rev=924281&view=rev
Log:
unsing lower-case version of extension (extensions are lower case in mime.types)

Modified:
    incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java

Modified: incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java
URL: http://svn.apache.org/viewvc/incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java?rev=924281&r1=924280&r2=924281&view=diff
==============================================================================
--- incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java
(original)
+++ incubator/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.web.fileserver/src/main/java/org/apache/clerezza/web/fileserver/util/MediaTypeGuesser.java
Wed Mar 17 13:22:46 2010
@@ -31,7 +31,7 @@ import org.slf4j.LoggerFactory;
 
 /**
  *
- * This uses a buil in mime.types file.<br/>
+ * This uses a built in mime.types file.<br/>
  * Currently it doesn't implement java.net.FileNameMap, not does it uses the
  * java specific mime.type mechanism as the URLConnection.getFileNameMap()
  * method.
@@ -104,6 +104,6 @@ public class MediaTypeGuesser {
 		if (dotPos == -1) {
 			return null;
 		}
-		return getTypeForExtension(fileName.substring(dotPos+1));
+		return getTypeForExtension(fileName.substring(dotPos+1).toLowerCase());
 	}
 }



Mime
View raw message