Here is the DefaultServlet patch which sets the content type header before 
getOutputstream.
872a873,879
>           if (contentType != null) {
>             if (debug > 0)
>               log("DefaultServlet.serveFile:  contentType='" +
>                   contentType + "'");
>             response.setContentType(contentType);
>           }
> 
991,997d997
<                 if (contentType != null) {
<                     if (debug > 0)
<                         log("DefaultServlet.serveFile:  contentType='" +
<                             contentType + "'");
<                     response.setContentType(contentType);
<                 }
< 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to