mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-23 05:29:52 +05:30
Wrapped getallheaders() method in function_exists (function isn't available on command line)
This commit is contained in:
parent
87ec05dba6
commit
465c1c6ab2
@ -127,6 +127,7 @@ class Server
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Try and get an access token from the auth header
|
// Try and get an access token from the auth header
|
||||||
|
if (function_exists('getallheaders')) {
|
||||||
$headers = getallheaders();
|
$headers = getallheaders();
|
||||||
if (isset($headers['Authorization'])) {
|
if (isset($headers['Authorization'])) {
|
||||||
|
|
||||||
@ -136,6 +137,7 @@ class Server
|
|||||||
$accessToken = base64_decode($rawToken);
|
$accessToken = base64_decode($rawToken);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($accessToken) {
|
if ($accessToken) {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user