Where is Content-Type being set?

I'd like to send it instead as application/xhtml+xml, if the Accept header of the request claims to take that. I found this example of rewriting it in Apache, but it would be far easier to target the necessary pages, not to mention more elegant, if I did this within Catalyst.

|       AddType text/html .xhtml
        RewriteEngine on
        RewriteBase /
        RewriteCond %{HTTP_ACCEPT} application/xhtml\+xml
        RewriteCond %{HTTP_ACCEPT} !application/xhtml\+xml\s*;\s*q=0
        RewriteCond %{REQUEST_URI} \.xhtml$
        RewriteCond %{THE_REQUEST} HTTP/1\.1
        RewriteRule .* - [T=application/xhtml+xml]|



_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to