Don't use X-Accel-Redirect for the maintenance page, it overrides the status code.

This commit is contained in:
flash 2025-02-25 15:14:17 +00:00
parent aaba24894c
commit b1d9f88549

View file

@ -17,7 +17,7 @@ ob_start();
if(is_file($msz->dbCtx->getMigrateLockPath())) { if(is_file($msz->dbCtx->getMigrateLockPath())) {
http_response_code(503); http_response_code(503);
header('Content-Type: text/html; charset=utf-8'); header('Content-Type: text/html; charset=utf-8');
header('X-Accel-Redirect: /error-503.html'); echo file_get_contents(sprintf('%s/error-503.html', Misuzu::PATH_PUBLIC));
exit; exit;
} }