X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FView%2FContentNegotiation%2FXHTML.pm;h=a90abbf413128ee240e7563c3fdaff4024acbe97;hb=d9925b56d8d7d19f8214b93670e22c159b4f8e69;hp=5ad775e15366992a94bdf25b80453c2199486b3e;hpb=c386dbe407678c058330b0ec4d4db1ae035bbf1b;p=catagits%2FCatalyst-View-ContentNegotiation-XHTML.git diff --git a/lib/Catalyst/View/ContentNegotiation/XHTML.pm b/lib/Catalyst/View/ContentNegotiation/XHTML.pm index 5ad775e..a90abbf 100644 --- a/lib/Catalyst/View/ContentNegotiation/XHTML.pm +++ b/lib/Catalyst/View/ContentNegotiation/XHTML.pm @@ -35,6 +35,7 @@ after process => sub { $c->response->headers->{'content-type'} =~ s|text/html|application/xhtml+xml|; } } + $c->response->headers->push_header(Vary => 'Accept'); }; sub pragmatic_accept {