Fix parse error in Auth.php

This commit is contained in:
Alexander A. Klimov 2016-02-15 14:50:33 +01:00
parent 45c95778ae
commit c78a7912e7
1 changed files with 2 additions and 1 deletions

View File

@ -282,7 +282,8 @@ class Auth
if ($request->isXmlHttpRequest() || ! $request->isApiRequest()) {
return false;
}
if (empty($header = $request->getHeader('Authorization'))) {
$header = $request->getHeader('Authorization');
if (empty($header)) {
$this->challengeHttp();
}
list($scheme) = explode(' ', $header, 2);