From: Michael Date: Wed, 12 May 2021 12:34:55 +0000 (+0000) Subject: HTTP_AUTHORIZATION should be enough X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=4a6d33e1824b32768c4a33653fefe75bf337e13d;p=friendica.git HTTP_AUTHORIZATION should be enough --- diff --git a/src/Module/BaseApi.php b/src/Module/BaseApi.php index 0462804733..27c4fee100 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;