stream write fix

This commit is contained in:
Julián Gutiérrez committed 2016-01-20 10:58:45 +01:00
1 parent ef5904ab1a
commit b7b1f56d0c
3 files changed
+8 -4

No files matched your search

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