Use the correct content type

pull/11402/head
Michael 8 months ago
parent 989ac2fda8
commit c88d306a41
  1. 2
      mod/oexchange.php
  2. 2
      src/Module/WellKnown/HostMeta.php
  3. 2
      src/Module/Xrd.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');
}
}

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

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

Loading…
Cancel
Save