Sfoglia il codice sorgente

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 anno fa
parent
commit
d17e0699f3
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1
    0
      lib/base.php

+ 1
- 0
lib/base.php Vedi 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…
Annulla
Salva