mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Fixed conversion to response object
This commit is contained in:
parent
660378c7b3
commit
cd19f11799
@ -243,9 +243,9 @@ class OAuthServerException extends \Exception
|
||||
$response = $response->withHeader($header, $content);
|
||||
}
|
||||
|
||||
return $response
|
||||
->withStatus($this->getHttpStatusCode())
|
||||
->getBody()->write(json_encode($payload));
|
||||
$response = $response->withStatus($this->getHttpStatusCode());
|
||||
$response->getBody()->write(json_encode($payload));
|
||||
return $response;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user