willdurand / Negotiation

Content Negotiation tools for PHP.
https://williamdurand.fr/Negotiation/
MIT License
1.41k stars 62 forks source link

LanguageNegociation fail with Safari (iOS9, Safari.9.1.1) #80

Closed orykami closed 2 years ago

orykami commented 8 years ago

Hi there !

We are encountering some troubles with LanguageNegociator under Safari.

Here's the Header sent by Safari on mobile & desktop : fr-fr

Accept-Language : fr-fr
$locale = $this->negotiator->getBest($request->getHeaderLine('Accept-Language'), $locales);

with

$locales = ["fr", "en", "it", "de"]

$locale is NULL after that, or it should be fr right ?

Any ideas on what's the deal ? Thank's !

willdurand commented 8 years ago

Hi! It seems related to #76

hirbod commented 7 years ago

will this ever get fixed?

willdurand commented 2 years ago

Likely fixed by https://github.com/willdurand/Negotiation/pull/113