@ -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');
@ -31,7 +31,6 @@ try {
OC_API::setContentType();
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {
setOcsContentType();
OC_Response::setStatus(405);
}