Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit d930d849fd784082f53c4993827206ce45b13902 1 parent 7ccca7e
@abh authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.