<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use DOMDocument;
use DOMElement;
use Friendica\BaseModule;
+use Friendica\Core\System;
use Friendica\DI;
use Friendica\Util\XML;
*/
protected function rawContent(array $request = [])
{
- header('Content-type: application/opensearchdescription+xml');
-
$hostname = DI::baseUrl()->getHostname();
$baseUrl = DI::baseUrl()->get();
'template' => "$baseUrl/opensearch",
]);
- echo $xml->saveXML();
-
- exit();
+ System::httpExit($xml->saveXML(), Response::TYPE_XML, 'application/opensearchdescription+xml');
}
}