mirror of
				https://github.com/elyby/oauth2-server.git
				synced 2025-05-31 14:12:07 +05:30 
			
		
		
		
	Respond with json content-type header
This commit is contained in:
		@@ -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';
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user