mirror of
https://github.com/friendica/friendica
synced 2025-04-25 23:10:12 +00:00
Centralize Vary header declaration in ActivityPub::isRequest
- Vary header should be set every time we vary the display based on an HTTP header value
This commit is contained in:
parent
31fbe70ec7
commit
6e2ab6c3af
7 changed files with 7 additions and 8 deletions
|
@ -115,8 +115,6 @@ class Friendica extends BaseModule
|
|||
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
header('Vary: Accept', false);
|
||||
|
||||
// @TODO: Replace with parameter from router
|
||||
if (DI::args()->getArgc() <= 1 || (DI::args()->getArgv()[1] !== 'json')) {
|
||||
if (!ActivityPub::isRequest()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue