]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ReallySimpleDiscovery.php
Merge pull request #12493 from annando/new-stats
[friendica.git] / src / Module / ReallySimpleDiscovery.php
index 8d6a6ff3c282bed97127812cacf9dcecdadb52c0..9b8cb31a5706b8ee2da47f254e6a8027469e3ecc 100644 (file)
@@ -1,6 +1,6 @@
 <?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
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 use Friendica\DI;
 use Friendica\Util\XML;
 
@@ -31,12 +32,10 @@ use Friendica\Util\XML;
  */
 class ReallySimpleDiscovery extends BaseModule
 {
-       public static function rawContent(array $parameters = [])
+       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);
        }
 }