diff options
author | Christoph Wurst <ChristophWurst@users.noreply.github.com> | 2022-08-10 10:16:02 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-10 10:16:02 +0300 |
commit | d17e0699f3e99053d4feac01cbf7c84c49ae34c5 (patch) | |
tree | 11924c7026ce1f4a08f1879eb2d6e404d07d1ac3 | |
parent | 54c6d81d365922bc1f48ce4b23eb5b65697adf63 (diff) | |
parent | 0ed987a8dd578b9597e12bf448abb4e452afa7c1 (diff) |
Merge pull request #33173 from nextcloud/enhancement/maintenance-mode-http-header
Set special header for 503 maintenance mode
-rw-r--r-- | lib/base.php | 1 |
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 |