forked from iain/http_accept_language
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make compatible_language_from follow the RFC 2616 selection algorithm
The change in commit 92b276c is wrong because it reverses the previous change to obey the RFC 2616 algorithm. Specifically RFC 2616 says that a request for en-GB will only match with en-GB or something that starts with en-GB and it will not match against en with no suffix. The test failures were because the test was wrong, not because the code was wrong. This commit restores the previous code and fixes the tests.
- Loading branch information
Showing
2 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters