From f040827bc8ffc73c5e638d36e70bd7172f440025 Mon Sep 17 00:00:00 2001 From: dami Date: Tue, 7 Apr 2026 23:27:43 +0800 Subject: [PATCH] Update __init__.py --- web/admin/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/admin/__init__.py b/web/admin/__init__.py index 5caddca52..893509dd3 100644 --- a/web/admin/__init__.py +++ b/web/admin/__init__.py @@ -46,8 +46,8 @@ setup.init() app = Flask(__name__, template_folder='templates/default') -# curl --compressed -I "http://127.0.0.1:44010/" -H "Accept-Encoding: zstd" --write-out "%{json}" -app.config["COMPRESS_ALGORITHM"] = ["zstd", "br", "gzip", "deflate"] +# curl --compressed -I "http://127.0.0.1:44010/" -H "Accept-Encoding: br" --write-out "%{json}" +app.config["COMPRESS_ALGORITHM"] = ["br", "zstd", "gzip", "deflate"] app.config["COMPRESS_LEVEL"] = 9 # 最高压缩级别 app.config["COMPRESS_MIN_SIZE"] = 500 # 最小压缩大小 Compress(app)