mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Set special header for 503 maintenance mode
This removes ambiguity with a 503 returned by app code, web server or similar. Front-end and clients can then handle this state accordingly. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
fe2f8b5d18
commit
0ed987a8dd
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