mirror of
https://github.com/friendica/friendica
synced 2025-04-27 14:30:11 +00:00
Make requested changes
This commit is contained in:
parent
6a5266c6b8
commit
40783db161
5 changed files with 10 additions and 13 deletions
|
@ -80,6 +80,8 @@ class Xrd extends BaseModule
|
|||
throw new NotFoundException('Invalid host name for xrd query: ' . $host);
|
||||
}
|
||||
|
||||
header('Vary: Accept', false);
|
||||
|
||||
if ($name == User::getActorName()) {
|
||||
$owner = User::getSystemAccount();
|
||||
if (empty($owner)) {
|
||||
|
@ -152,7 +154,6 @@ class Xrd extends BaseModule
|
|||
]
|
||||
];
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Vary: Accept', false);
|
||||
System::jsonExit($json, 'application/jrd+json; charset=utf-8');
|
||||
}
|
||||
|
||||
|
@ -230,7 +231,6 @@ class Xrd extends BaseModule
|
|||
];
|
||||
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Vary: Accept', false);
|
||||
System::jsonExit($json, 'application/jrd+json; charset=utf-8');
|
||||
}
|
||||
|
||||
|
@ -328,7 +328,6 @@ class Xrd extends BaseModule
|
|||
]);
|
||||
|
||||
header('Access-Control-Allow-Origin: *');
|
||||
header('Vary: Accept', false);
|
||||
System::httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml');
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue