check HTTP_ACCEPT_LANGUAGE in when necessary

The value of HTTP_ACCEPT_LANGUAGE in the examination only when necessary