aboutsummaryrefslogtreecommitdiffstats
path: root/ocs
diff options
context:
space:
mode:
Diffstat (limited to 'ocs')
-rw-r--r--ocs/v1.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 3da72e65f1c..5d360c530a9 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -28,8 +28,10 @@ use Symfony\Component\Routing\Exception\MethodNotAllowedException;
try {
OC::$server->getRouter()->match('/ocs'.OC_Request::getRawPathInfo());
} catch (ResourceNotFoundException $e) {
+ OC_API::setContentType();
OC_OCS::notFound();
} catch (MethodNotAllowedException $e) {
+ OC_API::setContentType();
OC_Response::setStatus(405);
}