]> source.dussan.org Git - nextcloud-server.git/commitdiff
Use the proper content-type
authorLukas Reschke <lukas@statuscode.ch>
Mon, 17 Feb 2014 15:45:22 +0000 (16:45 +0100)
committerLukas Reschke <lukas@statuscode.ch>
Mon, 17 Feb 2014 15:45:22 +0000 (16:45 +0100)
We should use the proper content-type `application/xml` instead of the default `text/html` here.

Backport requested.

ocs/providers.php

index bf94b85dcfba2eb945ab14b9c2cad737f281b7b5..2c62f767ad3a6ab7fda6dfc00e7726c86566bd03 100644 (file)
@@ -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('