fixing method names
This commit is contained in:
parent
743addd1e3
commit
88f6dd7db1
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue