mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-24 22:19:58 +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()
|
||||
{
|
||||
$headers = [];
|
||||
$headers = [
|
||||
'Content-type' => 'application/json'
|
||||
];
|
||||
switch ($this->httpStatusCode) {
|
||||
case 401:
|
||||
$headers[] = 'HTTP/1.1 401 Unauthorized';
|
||||
|
Loading…
Reference in New Issue
Block a user