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
parent
commit
d17e0699f3
No account linked to committer's email address
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      lib/base.php

+ 1
- 0
lib/base.php View File

@@ -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…
Cancel
Save