]> git.mxchange.org Git - friendica.git/commitdiff
HTTP_AUTHORIZATION should be enough
authorMichael <heluecht@pirati.ca>
Wed, 12 May 2021 12:34:55 +0000 (12:34 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 12 May 2021 12:34:55 +0000 (12:34 +0000)
src/Module/BaseApi.php

index 046280473307ed5e3b5ee810c07b5d58056deae2..27c4fee10060282bc7cb3c23794bb875bd6c5b30 100644 (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;