Closed caridy closed 9 years ago
I think negotiator should handle this. I can write a fix for this over the weekend.
I checked and verified that RFC 4647 (via RFC 7231) does indeed say comparisons are to me made case-insensitive, just as a point of reference :)
awesome, thanks you guys!
We have noticed that some browsers will send the
Accept-Language
header all in lower case (e.g.: fr-fr), some others will send it asfr-FR
. This put a borden on the user to deal with these differences when it could be done at the lower level. Here is a repro case using npm REPL:what is the recommendation to solve this problem? can this be covered by
negotiator/lib/language
directly?/cc @ericf