From 52c30a1e0ed9e03c2d1d4f259ec88137dc23d099 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 7 Apr 2026 15:27:00 +0800 Subject: [PATCH] Update index.py --- plugins/openresty/index.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/openresty/index.py b/plugins/openresty/index.py index a8c286ec0..5f0d98966 100755 --- a/plugins/openresty/index.py +++ b/plugins/openresty/index.py @@ -570,7 +570,7 @@ def setCfg(): if k == "worker_processes" or k == "gzip": if not re.search(r"auto|on|off|\d+", v): return mw.returnJson(False, '参数值错误') - if k == "zstd" or k == "brotli": + elif k == "zstd" or k == "brotli": if not re.search(r"auto|on|off|\d+", v): return mw.returnJson(False, '参数值错误') else: