Skip to content

Commit

Permalink
Try using varnish-accept-language for better Accept-Language support
Browse files Browse the repository at this point in the history
  • Loading branch information
abh committed Nov 10, 2011
1 parent 7ccca7e commit d930d84
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/NTPPool/Control.pm
Expand Up @@ -131,8 +131,7 @@ sub detect_language {
$self->plain_cookie('lang', '', { expires => '-1' });
}

my $language_choice = $self->request->header_in('X-Language') ;

my $language_choice = $self->request->header_in('X-Varnish-Accept-Language');
return $language_choice if $self->valid_language($language_choice);

$ENV{REQUEST_METHOD} = $self->request->method;
Expand Down

0 comments on commit d930d84

Please sign in to comment.