Use more sensible module name in Synopsis.
[catagits/Catalyst-View-ContentNegotiation-XHTML.git] / lib / Catalyst / View / ContentNegotiation / XHTML.pm
index 256804f..84ef84f 100644 (file)
@@ -8,7 +8,7 @@ use HTTP::Negotiate qw/choose/;
 use namespace::clean -except => 'meta';
 
 # Remember to bump $VERSION in View::TT::XHTML also.
-our $VERSION = '1.100';
+our $VERSION = '1.102';
 
 requires 'process';
 
@@ -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 {
@@ -60,7 +61,7 @@ header to application/xhtml+xml if the browser accepts it.
 
 =head1 SYNOPSIS
 
-    package Catalyst::View::TT;
+    package MyApp::View::TT;
 
     use Moose;
     use namespace::clean -except => 'meta';
@@ -138,16 +139,18 @@ ContentNegotiation::XHTML.
 
 =head1 AUTHOR
 
-Original author and maintainer - Tomas Doran (t0m) 
-C<< <bobtfish@bobtfish.net> >>
+=over
+
+=item Maintainer and contributor of various features - David Dorward (dorward) C<< <david@dorward.me.uk> >>
+
+=item Original author and maintainer - Tomas Doran (t0m) C<< <bobtfish@bobtfish.net> >>
+
+=back
 
 =head1 CONTRIBUTORS
 
 =over
 
-=item David Dorward - test patches and */* pragmatism to make it work for
-browsers which aren't firefox.
-
 =item Florian Ragwitz (rafl) C<< <rafl@debian.org> >> - Conversion into a
 Moose Role, which is what the module should have been originally.