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. About the HTTP response header, I would like to have "useAcceptRanges" Feature as default for src.share.org.apache.catalina.servlets.DefaultServlet. It was already added on Tomcat after 6.0.18. Regards, Vitor
I've propose a backport of the Accept-Ranges fix for 5.5.x
Making MIME type matching case insensitive is an enhancement so I will change the severity of this bug once the accept range fix has been applied
There are two issues in OP's report. The 'making MIME type matching case insensitive' part of this issue is addressed as bug #45995. Thus I narrowed the Summary.
This has been fixed in 5.5.x and will be included in 5.5.28 onwards.