fixing method names

This commit is contained in:
Thomas Müller 2014-03-12 10:00:22 +01:00
parent 743addd1e3
commit 88f6dd7db1
2 changed files with 1 additions and 2 deletions

View 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');

View File

@ -31,7 +31,6 @@ try {
OC_API::setContentType();
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {
setOcsContentType();
OC_API::setContentType();
OC_Response::setStatus(405);
}