HTTP_AUTHORIZATION should be enough

pull/10233/head
Michael 2021-05-12 12:34:55 +00:00
rodzic b2fe039dab
commit 4a6d33e182
1 zmienionych plików z 0 dodań i 1 usunięć

Wyświetl plik

@ -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;