Issue 10947: Send correct accept-header for AP
This commit is contained in:
@@ -68,17 +68,6 @@ class Receiver
|
||||
const TARGET_ANSWER = 6;
|
||||
const TARGET_GLOBAL = 7;
|
||||
|
||||
/**
|
||||
* Checks if the web request is done for the AP protocol
|
||||
*
|
||||
* @return bool is it AP?
|
||||
*/
|
||||
public static function isRequest()
|
||||
{
|
||||
return stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/activity+json') ||
|
||||
stristr($_SERVER['HTTP_ACCEPT'] ?? '', 'application/ld+json');
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks incoming message from the inbox
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user