Merge pull request #875 from midoks/dev

Update __init__.py
This commit is contained in:
Mr Chen
2026-04-07 23:34:44 +08:00
committed by GitHub
+2 -2
View File
@@ -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)