mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-25 06:30:13 +05:30
Respond with json content-type header
This commit is contained in:
parent
bf1c46d62f
commit
110d5ce76f
@ -80,7 +80,9 @@ class OAuthException extends \Exception
|
|||||||
*/
|
*/
|
||||||
public function getHttpHeaders()
|
public function getHttpHeaders()
|
||||||
{
|
{
|
||||||
$headers = [];
|
$headers = [
|
||||||
|
'Content-type' => 'application/json'
|
||||||
|
];
|
||||||
switch ($this->httpStatusCode) {
|
switch ($this->httpStatusCode) {
|
||||||
case 401:
|
case 401:
|
||||||
$headers[] = 'HTTP/1.1 401 Unauthorized';
|
$headers[] = 'HTTP/1.1 401 Unauthorized';
|
||||||
|
Loading…
Reference in New Issue
Block a user