]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/WellKnown/NodeInfo.php
Merge remote-tracking branch 'upstream/develop' into inbox-gsid
[friendica.git] / src / Module / WellKnown / NodeInfo.php
index d34823bb438635f79e51dfb1257d6b6081c9433d..e1c486c2eb9402043994396bee6b3ff3a7ab822c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2022, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,6 +22,7 @@
 namespace Friendica\Module\WellKnown;
 
 use Friendica\BaseModule;
+use Friendica\Core\System;
 use Friendica\DI;
 
 /**
@@ -51,8 +52,6 @@ class NodeInfo extends BaseModule
                        ]
                ];
 
-               header('Content-type: application/json; charset=utf-8');
-               echo json_encode($nodeinfo, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
-               exit;
+               System::jsonExit($nodeinfo);
        }
 }