Respond with json content-type header

This commit is contained in:
Alex Bilbie 2015-04-05 21:11:51 +01:00
parent bf1c46d62f
commit 110d5ce76f

View File

@ -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';