This repository was archived by the owner on Jan 30, 2020. It is now read-only.

Description
Hi,
An error occured when we try to retrieve "Accept-Language" from request headers and "$_SERVER['HTTP_ACCEPT_LANGUAGE']" is non well formatted : ""Undefined offset: 1" - /.../Zend/Http/Header/AbstractAccept.php (173)"
The following unit test shows this behavior.
public function testDefineDefaultLocaleWithWrongHttpAcceptLanguageHeader()
{
$_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'en-US;en';
$oRequest = new \Zend\Http\PhpEnvironment\Request();
$oRequest->getHeaders()->get('Accept-Language'); // Php notice
}
Thanks for helping me to fix it