Merge pull request #33173 from nextcloud/enhancement/maintenance-mode-http-header

Set special header for 503 maintenance mode
This commit is contained in:
Christoph Wurst 2022-08-10 09:16:02 +02:00 committed by GitHub
commit d17e0699f3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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