-
Bug
-
Resolution: Done
-
Minor
-
1.1.0.Final
-
None
Method ServletContextImpl.getMimeType is case sensitive:
@Override public String getMimeType(final String file) { int pos = file.lastIndexOf('.'); if (pos == -1) { return deployment.getMimeExtensionMappings().get(file); } return deployment.getMimeExtensionMappings().get(file.substring(pos + 1)); }
i.e. *.PDF is not *.pdf. This causes an error during downloading files, such as * .PDF.
But RFC 2045 says: All media type values, subtype values, and parameter names as defined are case-insensitive.