FAQ
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]|

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupcatalyst @
categoriescatalyst, perl
postedMar 28, '11 at 1:12p
activeMar 28, '11 at 1:29p
posts2
users2
websitecatalystframework.org
irc#catalyst

2 users in discussion

Denny: 1 post John M. Dlugosz: 1 post

People

Translate

site design / logo © 2022 Grokbase