mirror of
https://github.com/elyby/oauth2-server.git
synced 2025-05-31 14:12:07 +05:30
Various fixes and tweaks
This commit is contained in:
@@ -168,7 +168,7 @@ class ResourceServer
|
||||
}
|
||||
|
||||
if (empty($access_token)) {
|
||||
throw new Exception\MissingAccessTokenException('Access Token is Missing');
|
||||
throw new Exception\InvalidAccessTokenException('Access token is missing');
|
||||
}
|
||||
|
||||
return $access_token;
|
||||
|
||||
@@ -66,8 +66,10 @@ class Request implements RequestInterface
|
||||
protected function readHeaders()
|
||||
{
|
||||
if (function_exists('getallheaders')) {
|
||||
// @codeCoverageIgnoreStart
|
||||
$headers = getallheaders();
|
||||
} else {
|
||||
// @codeCoverageIgnoreEnd
|
||||
$headers = array();
|
||||
foreach ($this->server() as $name => $value) {
|
||||
if (substr($name, 0, 5) == 'HTTP_') {
|
||||
|
||||
Reference in New Issue
Block a user