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
pai
commit
d17e0699f3
Nenhuma conta vinculada ao e-mail do autor do commit
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1
    0
      lib/base.php

+ 1
- 0
lib/base.php Ver arquivo

@@ -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

Carregando…
Cancelar
Salvar