From c88d306a4141c5cea68f7b9b9d4055bab20d8105 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 11 Apr 2022 06:07:50 +0000 Subject: [PATCH] Use the correct content type --- mod/oexchange.php | 2 +- src/Module/WellKnown/HostMeta.php | 2 +- src/Module/Xrd.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/oexchange.php b/mod/oexchange.php index e279bfff29..2060ddd13a 100644 --- a/mod/oexchange.php +++ b/mod/oexchange.php @@ -32,7 +32,7 @@ function oexchange_init(App $a) { $tpl = Renderer::getMarkupTemplate('oexchange_xrd.tpl'); $o = Renderer::replaceMacros($tpl, ['$base' => DI::baseUrl()]); - System::httpExit($o, Response::TYPE_XML); + System::httpExit($o, Response::TYPE_XML, 'application/xrd+xml'); } } diff --git a/src/Module/WellKnown/HostMeta.php b/src/Module/WellKnown/HostMeta.php index 8f44754530..2ca66f93ba 100644 --- a/src/Module/WellKnown/HostMeta.php +++ b/src/Module/WellKnown/HostMeta.php @@ -54,6 +54,6 @@ class HostMeta extends BaseModule '$bigkey' => Salmon::salmonKey($config->get('system', 'site_pubkey')) ]); - System::httpExit($content, Response::TYPE_XML); + System::httpExit($content, Response::TYPE_XML, 'application/xrd+xml'); } } diff --git a/src/Module/Xrd.php b/src/Module/Xrd.php index 6043ae4ddc..3d8f50fc21 100644 --- a/src/Module/Xrd.php +++ b/src/Module/Xrd.php @@ -262,6 +262,6 @@ class Xrd extends BaseModule header('Access-Control-Allow-Origin: *'); - System::httpExit($arr['xml'], Response::TYPE_XML); + System::httpExit($arr['xml'], Response::TYPE_XML, 'application/xrd+xml'); } } -- 2.39.5