summaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-02-17 16:45:22 +0100
committerLukas Reschke <lukas@statuscode.ch>2014-02-18 11:44:04 +0100
commitcf05ecbd1c1b3113f8b7d9bfa02705509e2d2533 (patch)
treeb234c91f867e8d1aa52d92fef80bf1cee7155de8 /ocs
parent8d5430c1c7c858b69a32d77ad1b607a47b6ce637 (diff)
downloadnextcloud-server-cf05ecbd1c1b3113f8b7d9bfa02705509e2d2533.tar.gz
nextcloud-server-cf05ecbd1c1b3113f8b7d9bfa02705509e2d2533.zip
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('