diff --git a/src/Exception/OAuthException.php b/src/Exception/OAuthException.php index fa8b465b..9183a9d2 100644 --- a/src/Exception/OAuthException.php +++ b/src/Exception/OAuthException.php @@ -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';