namespace Friendica\Module;
use Friendica\BaseModule;
+use Friendica\Core\System;
use Friendica\DI;
use Friendica\Util\XML;
{
protected function rawContent(array $request = [])
{
- header('Content-Type: text/xml');
-
$xml = null;
- echo XML::fromArray([
+ $content = XML::fromArray([
'rsd' => [
'@attributes' => [
'version' => '1.0',
],
],
], $xml);
- exit();
+ System::httpExit($content, Response::TYPE_XML);
}
}