From 4a6d33e1824b32768c4a33653fefe75bf337e13d Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 12 May 2021 12:34:55 +0000 Subject: [PATCH] HTTP_AUTHORIZATION should be enough --- src/Module/BaseApi.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 046280473..27c4fee10 100644 --- a/src/Module/BaseApi.php +++ b/src/Module/BaseApi.php @@ -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;