Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/ocs
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-02-17 19:45:22 +0400
committerLukas Reschke <lukas@statuscode.ch>2014-02-17 19:45:22 +0400
commit8a2cd0355da540759e7a1edcfe67fb4715032ad0 (patch)
tree07d930edad5f70c78118c6734ebebd3f9c855b45 /ocs
parent84cd6e035e5e01c5a3182bd73677371d08810b20 (diff)
Use the proper content-type
We should use the proper content-type `application/xml` instead of the default `text/html` here. Backport requested.
Diffstat (limited to 'ocs')
-rw-r--r--ocs/providers.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocs/providers.php b/ocs/providers.php
index bf94b85dcfb..2c62f767ad3 100644
--- a/ocs/providers.php
+++ b/ocs/providers.php
@@ -23,6 +23,8 @@
require_once '../lib/base.php';
+header('Content-type: application/xml');
+
$url=OCP\Util::getServerProtocol().'://'.substr(OCP\Util::getServerHost().OCP\Util::getRequestUri(), 0, -17).'ocs/v1.php/';
echo('