Hi, On the dev-tomcat list I described in the topic "Byte Serving and PDFs with the DefaultServlet" an issue that I had with Tomcat to serve PDFs. Analysing the answers I could find that the matter was related to the case of the file extension. Today Tomcat is case sensitive for MIME type extensions. So the solution for me was enter two MIME specifications on the web.xml file. One is for "pdf" and another one for "PDF". This way I would like to ask for and request for enhancement to make Tomcat be able to, due a setup on configuration file, consider or not case for MIME type extensions. Regards, Vitor
For reference: In Apache HTTPD as of current 1.3 and 2.2 versions, the mime mappings are case-insensitive. See: http://httpd.apache.org/docs/2.2/en/mod/mod_mime.html http://httpd.apache.org/docs/1.3/mod/mod_mime.html esp. see the AddType and TypesConfig directives
Fixed in trunk for Tomcat 8 onwards. From Tomcat 8, Tomcat will align with httpd and use a case-insensitive comparison. There hasn't been much demand for this feature in the current Tomcat releases so I do not propose to back-port it since: - changing behaviour for stable releases may cause problems for existing applications - making it configurable adds unnecessary complexity If demand does appear, then this can be back-ported but it would need to be configurable.