]> iEval git - plack-app-gruntmaster.git/commitdiff
Add Vary: Accept-Language to generated responses
authorMarius Gavrilescu <marius@ieval.ro>
Tue, 4 Feb 2014 22:36:44 +0000 (00:36 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Tue, 4 Feb 2014 22:36:44 +0000 (00:36 +0200)
lib/Gruntmaster/Page/Base.pm

index 47beca71695a2e56c03221d1f5d4c4fbe0143cf2..1741b30c5cdfbd483cd56b7531da63ce51f699bb 100644 (file)
@@ -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.027032 seconds and 4 git commands to generate.