Browse Source
Merge pull request #33173 from nextcloud/enhancement/maintenance-mode-http-header
Set special header for 503 maintenance mode
tags/v25.0.0beta1
Christoph Wurst
1 year ago
No account linked to committer's email address
1 changed files with
1 additions and
0 deletions
-
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 |