X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FReallySimpleDiscovery.php;h=9b8cb31a5706b8ee2da47f254e6a8027469e3ecc;hb=7072a7178896c567caf5003e94a8f8045221bd8f;hp=d699455f470ad7f6fab2a98084f5711265082a71;hpb=322b7c856ca9ba53bd9c7da50dd5c1e3c9197d56;p=friendica.git diff --git a/src/Module/ReallySimpleDiscovery.php b/src/Module/ReallySimpleDiscovery.php index d699455f47..9b8cb31a57 100644 --- a/src/Module/ReallySimpleDiscovery.php +++ b/src/Module/ReallySimpleDiscovery.php @@ -22,6 +22,7 @@ namespace Friendica\Module; use Friendica\BaseModule; +use Friendica\Core\System; use Friendica\DI; use Friendica\Util\XML; @@ -33,10 +34,8 @@ class ReallySimpleDiscovery extends BaseModule { protected function rawContent(array $request = []) { - header('Content-Type: text/xml'); - $xml = null; - echo XML::fromArray([ + $content = XML::fromArray([ 'rsd' => [ '@attributes' => [ 'version' => '1.0', @@ -69,6 +68,6 @@ class ReallySimpleDiscovery extends BaseModule ], ], ], $xml); - exit(); + System::httpExit($content, Response::TYPE_XML); } }