From 110d5ce76fc4c4a83fb584c659017eadee4cce17 Mon Sep 17 00:00:00 2001 From: Alex Bilbie Date: Sun, 5 Apr 2015 21:11:51 +0100 Subject: [PATCH] Respond with json content-type header --- src/Exception/OAuthException.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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';