mirror of
https://github.com/friendica/friendica
synced 2024-11-19 17:03:41 +00:00
HTTP_AUTHORIZATION should be enough
This commit is contained in:
parent
b2fe039dab
commit
4a6d33e182
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue