mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-01-09 05:23:53 +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);
|
$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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user