Fixed conversion to response object

This commit is contained in:
Alex Bilbie 2016-01-17 14:55:36 +00:00
parent 660378c7b3
commit cd19f11799

View File

@ -243,9 +243,9 @@ class OAuthServerException extends \Exception
$response = $response->withHeader($header, $content); $response = $response->withHeader($header, $content);
} }
return $response $response = $response->withStatus($this->getHttpStatusCode());
->withStatus($this->getHttpStatusCode()) $response->getBody()->write(json_encode($payload));
->getBody()->write(json_encode($payload)); return $response;
} }
/** /**