[Pkg-owncloud-commits] [owncloud] 23/66: Use the proper content-type

David Prévot taffit at moszumanska.debian.org
Fri Apr 18 22:49:44 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v5.0.15
in repository owncloud.

commit cf05ecbd1c1b3113f8b7d9bfa02705509e2d2533
Author: Lukas Reschke <lukas at statuscode.ch>
Date:   Mon Feb 17 16:45:22 2014 +0100

    Use the proper content-type
    
    We should use the proper content-type `application/xml` instead of the default `text/html` here.
    
    Backport requested.
---
 ocs/providers.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ocs/providers.php b/ocs/providers.php
index bf94b85..2c62f76 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('

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list