aboutsummaryrefslogtreecommitdiffstats
path: root/ocs/v1.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2022-09-30 10:52:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2022-09-30 10:52:40 +0200
commita5ea17a2e5773e649b6bbabb602066ee85a81f42 (patch)
treee30b5861398b3de44172f41295cc86afe3ce5cdd /ocs/v1.php
parent534fbd83e3c20f1d52c826e5ac4a80d44f4f6be8 (diff)
downloadnextcloud-server-a5ea17a2e5773e649b6bbabb602066ee85a81f42.tar.gz
nextcloud-server-a5ea17a2e5773e649b6bbabb602066ee85a81f42.zip
Fix missing maintenance mode header for OCS request
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'ocs/v1.php')
-rw-r--r--ocs/v1.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php
index 9f6a05ac42f..3fba48b13c8 100644
--- a/ocs/v1.php
+++ b/ocs/v1.php
@@ -35,6 +35,7 @@ if (\OCP\Util::needUpgrade()
// since the behavior of apps or remotes are unpredictable during
// an upgrade, return a 503 directly
http_response_code(503);
+ header('X-Nextcloud-Maintenance-Mode: 1');
$response = new \OC\OCS\Result(null, 503, 'Service unavailable');
OC_API::respond($response, OC_API::requestedFormat());
exit;