Re: Setting Content-Type for a static resource

2015-05-11 Thread Peter Rifel
David and Chris, On 5/11/15, 10:25 AM, Christopher Schultz ch...@christopherschultz.net wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 5/8/15 1:02 PM, David kerber wrote: On 5/8/2015 12:48 PM, Peter Rifel wrote: Chris, Thanks for the advice but that doesn't seem to

Re: Setting Content-Type for a static resource

2015-05-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, On 5/8/15 1:02 PM, David kerber wrote: On 5/8/2015 12:48 PM, Peter Rifel wrote: Chris, Thanks for the advice but that doesn't seem to help. It looks like ApplicationContext.getMimeType(String) extracts the extension from the file and

Re: Setting Content-Type for a static resource

2015-05-08 Thread Peter Rifel
Chris, Thanks for the advice but that doesn't seem to help. It looks like ApplicationContext.getMimeType(String) extracts the extension from the file and uses that in looking up the context's mime mapping. The .xml extension of the file results in the xml mime-mapping's mime-type, and the

Re: Setting Content-Type for a static resource

2015-05-08 Thread David kerber
On 5/8/2015 12:48 PM, Peter Rifel wrote: Chris, Thanks for the advice but that doesn't seem to help. It looks like ApplicationContext.getMimeType(String) extracts the extension from the file and uses that in looking up the context's mime mapping. The .xml extension of the file results in the

Re: Setting Content-Type for a static resource

2015-05-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Peter Rifel, On 5/7/15 5:06 PM, Peter Rifel wrote: I'm using Tomcat 8.0.21 and have a static /crossdomain.xml file that I would like to serve with a Content-Type of text/x-cross-domain-policy. I'm using the Tuckey url rewrite filter to set

Setting Content-Type for a static resource

2015-05-07 Thread Peter Rifel
Hello, I'm using Tomcat 8.0.21 and have a static /crossdomain.xml file that I would like to serve with a Content-Type of text/x-cross-domain-policy. I'm using the Tuckey url rewrite filter to set the response's Content-Type but it appears to be getting overwritten back to application/xml.