mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 23:04:26 +02: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…
Add table
Add a link
Reference in a new issue