]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Xrd.php
Decouple conversation creation from rendering
[friendica.git] / src / Module / Xrd.php
index 6a4c0e860d31be4c12b07e005074a705d3647ba8..3267e9e9a24bbeecb6daa7d92754a29687c3bf7d 100644 (file)
@@ -80,6 +80,8 @@ class Xrd extends BaseModule
                        throw new NotFoundException('Invalid host name for xrd query: ' . $host);
                }
 
+               header('Vary: Accept', false);
+
                if ($name == User::getActorName()) {
                        $owner = User::getSystemAccount();
                        if (empty($owner)) {
@@ -326,7 +328,6 @@ class Xrd extends BaseModule
                ]);
 
                header('Access-Control-Allow-Origin: *');
-
                System::httpExit($xmlString, Response::TYPE_XML, 'application/xrd+xml');
        }
 }