Skip to content
Snippets Groups Projects
Commit 88f6dd7d authored by Thomas Müller's avatar Thomas Müller
Browse files

fixing method names

parent 743addd1
Branches
No related tags found
No related merge requests found
......@@ -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_API::setContentType();
OC_Response::setStatus(405);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment