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
No related branches found
No related tags found
No related merge requests found
...@@ -361,7 +361,7 @@ class OC_API { ...@@ -361,7 +361,7 @@ class OC_API {
/** /**
* Based on the requested format the response content type is set * Based on the requested format the response content type is set
*/ */
public static function setOcsContentType() { public static function setContentType() {
$format = \OC_API::requestedFormat(); $format = \OC_API::requestedFormat();
if ($format === 'xml') { if ($format === 'xml') {
header('Content-type: text/xml; charset=UTF-8'); header('Content-type: text/xml; charset=UTF-8');
......
...@@ -31,7 +31,6 @@ try { ...@@ -31,7 +31,6 @@ try {
OC_API::setContentType(); OC_API::setContentType();
OC_OCS::notFound(); OC_OCS::notFound();
} catch (MethodNotAllowedException $e) { } catch (MethodNotAllowedException $e) {
setOcsContentType();
OC_API::setContentType(); OC_API::setContentType();
OC_Response::setStatus(405); OC_Response::setStatus(405);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment