Merge pull request #669 from jeremykendall/fix/www-authenticate-header

Fix WWW-Authenticate entry in $headers array
This commit is contained in:
Alex Bilbie 2016-10-12 15:05:19 +01:00 committed by GitHub
commit 105b3116dc

View File

@ -267,7 +267,7 @@ class OAuthServerException extends \Exception
) { ) {
$authScheme = 'Bearer'; $authScheme = 'Bearer';
} }
$headers[] = 'WWW-Authenticate: ' . $authScheme . ' realm="OAuth"'; $headers['WWW-Authenticate'] = $authScheme . ' realm="OAuth"';
} }
// @codeCoverageIgnoreEnd // @codeCoverageIgnoreEnd
return $headers; return $headers;