瀏覽代碼

Fix missing maintenance mode header for OCS request

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
tags/v26.0.0beta1
Christoph Wurst 1 年之前
父節點
當前提交
a5ea17a2e5
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      ocs/v1.php

+ 1
- 0
ocs/v1.php 查看文件

@@ -35,6 +35,7 @@ if (\OCP\Util::needUpgrade()
// since the behavior of apps or remotes are unpredictable during
// an upgrade, return a 503 directly
http_response_code(503);
header('X-Nextcloud-Maintenance-Mode: 1');
$response = new \OC\OCS\Result(null, 503, 'Service unavailable');
OC_API::respond($response, OC_API::requestedFormat());
exit;

Loading…
取消
儲存