tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vitor.sw...@embraer.com.br
Subject Re: Byte Serving and PDFs with the DefaultServlet
Date Thu, 09 Oct 2008 19:00:31 GMT
Hello Mark, you are right.

The mime extension is not working on a case insensitive basis. Now my 
Tomcat 5.5 does byte serving with the web.xml portion below:

    <mime-mapping>
        <extension>pdf</extension>
        <mime-type>application/pdf</mime-type>
    </mime-mapping>
    <mime-mapping>
        <extension>PDF</extension>
        <mime-type>application/pdf</mime-type>
    </mime-mapping>

Although this worked without the "else"s forced as in the previous e-mail 
sent, There is still the need of the "useAcceptRanges" stuff that appeared 
after Tomcat 6.018.

Shouldn't mime type be case insensitive? Would this be a bug yet? As 
before should this be placed on bugzilla or is this just a configuration 
matter?

Thankyou.

Best regards,

Antonio Vitor Elias Swaid Jr
Technical Publications Development
EMBRAER - São José dos Campos
Fone: +55 12 3927-8364 Fax: +55 12 3927-3132
This message is intended solely for the use of its addressee and may 
contain privileged or confidential information. If you are not the 
addressee you should not distribute, copy or file this message. In this 
case, please notify the sender and destroy its contents immediately.
Esta mensagem é para uso exclusivo de seu destinatário e pode conter 
informações privilegiadas e confidenciais. Se você não é o destinatário 
não deve distribuir, copiar ou arquivar a mensagem. Neste caso, por favor, 
notifique o remetente da mesma e destrua imediatamente a mensagem.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message