mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-03-28 17:43:06 +01:00
Enable gzip compression for bulk_packets endpoint
Reduces payload size for large packet downloads, improving performance on slow network connections. Co-Authored-By: Warp <agent@warp.dev>
This commit is contained in:
@@ -299,6 +299,12 @@ class HTTPStatsServer:
|
||||
"/api": {
|
||||
"tools.require_auth.on": True,
|
||||
},
|
||||
# Enable gzip for bulk packet downloads
|
||||
"/api/bulk_packets": {
|
||||
"tools.gzip.on": True,
|
||||
"tools.gzip.mime_types": ["application/json"],
|
||||
"tools.gzip.compress_level": 6,
|
||||
},
|
||||
# Public documentation endpoints (no auth required)
|
||||
"/api/openapi": {
|
||||
"tools.require_auth.on": False,
|
||||
|
||||
Reference in New Issue
Block a user