Fix WWW-Authenticate entry in $headers array

In this context the header name should be the array key and the header
value the array value.
This commit is contained in:
jeremykendall 2016-10-11 22:27:24 -05:00
parent 4c4b0633b1
commit 01677a564e

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;