]> git.mxchange.org Git - friendica.git/commitdiff
Use the correct content type
authorMichael <heluecht@pirati.ca>
Mon, 11 Apr 2022 06:07:50 +0000 (06:07 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 11 Apr 2022 06:07:50 +0000 (06:07 +0000)
mod/oexchange.php
src/Module/WellKnown/HostMeta.php
src/Module/Xrd.php

index e279bfff29442e88f1389c0ec0f97673d329c731..2060ddd13a917122f6944182541c4e352aae2c7a 100644 (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');
        }
 }
 
index 8f447545306020559aac379d5a6f1ade85e223d5..2ca66f93ba91babf73957cf8ae0b9c4c44da6010 100644 (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');
        }
 }
index 6043ae4ddcaab42f504829b66f6a10d62185d346..3d8f50fc21d00285715c62e04a7983b57e56b5d2 100644 (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');
        }
 }