1
1
Fork 0

HTTP_AUTHORIZATION should be enough

This commit is contained in:
Michael 2021-05-12 12:34:55 +00:00
parent b2fe039dab
commit 4a6d33e182

View file

@ -187,7 +187,6 @@ class BaseApi extends BaseModule
private static function getUserByBearer()
{
$authorization = $_SERVER['HTTP_AUTHORIZATION'] ?? '';
$authorization = $_SERVER['AUTHORIZATION'] ?? $authorization;
if (substr($authorization, 0, 7) != 'Bearer ') {
return 0;