<?php
/**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
{
protected function rawContent(array $request = [])
{
+ header('Vary: Accept', false);
+
// @TODO: Replace with parameter from router
if (DI::args()->getArgv()[0] == 'xrd') {
if (empty($_GET['uri'])) {
throw new NotFoundException('Invalid host name for xrd query: ' . $host);
}
+ header('Vary: Accept', false);
+
if ($name == User::getActorName()) {
$owner = User::getSystemAccount();
if (empty($owner)) {
]
];
header('Access-Control-Allow-Origin: *');
- System::jsonExit($json, 'application/jrd+json; charset=utf-8');
+ $this->jsonExit($json, 'application/jrd+json; charset=utf-8');
}
private function printJSON(string $alias, array $owner, array $avatar)
];
header('Access-Control-Allow-Origin: *');
- System::jsonExit($json, 'application/jrd+json; charset=utf-8');
+ $this->jsonExit($json, 'application/jrd+json; charset=utf-8');
}
private function printXML(string $alias, array $owner, array $avatar)
]);
header('Access-Control-Allow-Origin: *');
-
- System::httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml');
+ $this->httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml');
}
}