Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <ChristophWurst@users.noreply.github.com>2022-08-10 10:16:02 +0300
committerGitHub <noreply@github.com>2022-08-10 10:16:02 +0300
commitd17e0699f3e99053d4feac01cbf7c84c49ae34c5 (patch)
tree11924c7026ce1f4a08f1879eb2d6e404d07d1ac3
parent54c6d81d365922bc1f48ce4b23eb5b65697adf63 (diff)
parent0ed987a8dd578b9597e12bf448abb4e452afa7c1 (diff)
Merge pull request #33173 from nextcloud/enhancement/maintenance-mode-http-header
Set special header for 503 maintenance mode
-rw-r--r--lib/base.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php
index be2567cfd33..54b7a5e3629 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -295,6 +295,7 @@ class OC {
if (((bool) $systemConfig->getValue('maintenance', false)) && OC::$SUBURI != '/core/ajax/update.php') {
// send http status 503
http_response_code(503);
+ header('X-Nextcloud-Maintenance-Mode: 1');
header('Retry-After: 120');
// render error page