mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Merge pull request #33173 from nextcloud/enhancement/maintenance-mode-http-header
Set special header for 503 maintenance mode
This commit is contained in:
commit
d17e0699f3
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue