Use the correct content type

This commit is contained in:
Michael 2022-04-11 06:07:50 +00:00
parent 989ac2fda8
commit c88d306a41
3 changed files with 3 additions and 3 deletions

View file

@ -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');
}
}

View file

@ -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');
}
}

View file

@ -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');
}
}