projects
/
catagits/Catalyst-View-ContentNegotiation-XHTML.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add support for Vary header.
[catagits/Catalyst-View-ContentNegotiation-XHTML.git]
/
lib
/
Catalyst
/
View
/
ContentNegotiation
/
XHTML.pm
diff --git
a/lib/Catalyst/View/ContentNegotiation/XHTML.pm
b/lib/Catalyst/View/ContentNegotiation/XHTML.pm
index
5ad775e
..
a90abbf
100644
(file)
--- 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 {