projects
/
gruntmaster-page.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a94f845
)
Add Vary: Accept-Language to generated responses
author
Marius Gavrilescu
<marius@ieval.ro>
Tue, 4 Feb 2014 22:36:44 +0000
(
00:36
+0200)
committer
Marius Gavrilescu
<marius@ieval.ro>
Tue, 4 Feb 2014 22:36:44 +0000
(
00:36
+0200)
lib/Gruntmaster/Page/Base.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Gruntmaster/Page/Base.pm
b/lib/Gruntmaster/Page/Base.pm
index 47beca71695a2e56c03221d1f5d4c4fbe0143cf2..1741b30c5cdfbd483cd56b7531da63ce51f699bb 100644
(file)
--- a/
lib/Gruntmaster/Page/Base.pm
+++ b/
lib/Gruntmaster/Page/Base.pm
@@
-141,7
+141,7
@@
sub generate{
my $htc = HTML::Template::Compiled->new(scalarref => \$templates{$self}{$lang}, default_escape => 'HTML',);
$self->_generate($htc, $lang, @args);
- [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1]], [ encode 'UTF-8' => $htc->output ] ]
+ [200, ['Content-Type' => 'text/html', 'Content-Language' => $_[1]
, 'Vary' => 'Accept-Language'
], [ encode 'UTF-8' => $htc->output ] ]
}
sub _generate {}
This page took
0.010868 seconds
and
4
git commands to generate.