jcasimir / locale_setter

A simple library to set request locale based on a hierarchy of factors
MIT License
118 stars 18 forks source link

Default http accept language header is not correct #15

Closed emielvanliere closed 9 years ago

emielvanliere commented 9 years ago

The library defaults the http header for Accept Language to 'HTTP_ACCEPT_LANGUAGE' but according to the spec this should be 'Accept-Language'.

See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

emielvanliere commented 9 years ago

I misunderstood, this actually refers to the http header in the ActionDispatch request environment. So it is correct.