mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-18 23:45:52 +08:00
Update index.py
This commit is contained in:
@@ -570,7 +570,7 @@ def setCfg():
|
|||||||
if k == "worker_processes" or k == "gzip":
|
if k == "worker_processes" or k == "gzip":
|
||||||
if not re.search(r"auto|on|off|\d+", v):
|
if not re.search(r"auto|on|off|\d+", v):
|
||||||
return mw.returnJson(False, '参数值错误')
|
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):
|
if not re.search(r"auto|on|off|\d+", v):
|
||||||
return mw.returnJson(False, '参数值错误')
|
return mw.returnJson(False, '参数值错误')
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user