]> source.dussan.org Git - nextcloud-server.git/commitdiff
fixing method names
authorThomas Müller <thomas.mueller@tmit.eu>
Wed, 12 Mar 2014 09:00:22 +0000 (10:00 +0100)
committerThomas Müller <thomas.mueller@tmit.eu>
Wed, 12 Mar 2014 09:00:22 +0000 (10:00 +0100)
lib/private/api.php
ocs/v1.php

index ccaccda97be4c3cb7ecd935057ca6e5cb1564179..e8e54e375e9488fc56d4c43d41924dbb6458e729 100644 (file)
@@ -361,7 +361,7 @@ class OC_API {
        /**
         * Based on the requested format the response content type is set
         */
-       public static function setOcsContentType() {
+       public static function setContentType() {
                $format = \OC_API::requestedFormat();
                if ($format === 'xml') {
                        header('Content-type: text/xml; charset=UTF-8');
index 9d84f482ef7a7653316daf3d19bbf9f3206d9fcf..4cbc857bbcfea80726c9cbb00aaac327feaa07df 100644 (file)
@@ -31,7 +31,6 @@ try {
        OC_API::setContentType();
        OC_OCS::notFound();
 } catch (MethodNotAllowedException $e) {
-       setOcsContentType();
        OC_API::setContentType();
        OC_Response::setStatus(405);
 }