Ver código fonte
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 ano atrás
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com
1 adições e
0 exclusões
-
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 |