Use the correct content type
This commit is contained in:
parent
989ac2fda8
commit
c88d306a41
3 changed files with 3 additions and 3 deletions
|
@ -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…
Reference in a new issue