Permalink
Browse files

Try using varnish-accept-language for better Accept-Language support

  • Loading branch information...
1 parent 7ccca7e commit d930d849fd784082f53c4993827206ce45b13902 @abh committed Nov 10, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/NTPPool/Control.pm
View
3 lib/NTPPool/Control.pm
@@ -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;

0 comments on commit d930d84

Please sign in to comment.