mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Fixed conversion to response object
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user