Add support for Vary header.
David Dorward [Thu, 17 Sep 2009 19:39:27 +0000 (20:39 +0100)]
Meet tests from previous commit.

lib/Catalyst/View/ContentNegotiation/XHTML.pm

index 5ad775e..a90abbf 100644 (file)
@@ -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 {