mirror of
https://github.com/friendica/friendica
synced 2025-01-24 19:39:48 +00:00
Merge pull request #9877 from annando/application-json
Accept "application/json" as application type for ActivityPub
This commit is contained in:
commit
43f0f6bbdc
1 changed files with 1 additions and 0 deletions
|
@ -77,6 +77,7 @@ class ActivityPub
|
||||||
public static function isRequest()
|
public static function isRequest()
|
||||||
{
|
{
|
||||||
return stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/activity+json') ||
|
return stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/activity+json') ||
|
||||||
|
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/json') ||
|
||||||
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/ld+json');
|
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/ld+json');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue