fix gzip threshold changed by mistake

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages 2023-08-15 12:52:01 +08:00
parent a1215749d2
commit 4c25f94bd1

View File

@ -214,7 +214,7 @@ class AbModel {
});
http.Response resp;
// support compression
if (licensedDevices > 0 && body.length > 102400) {
if (licensedDevices > 0 && body.length > 1024) {
authHeaders['Content-Encoding'] = "gzip";
resp = await http.post(Uri.parse(api),
headers: authHeaders, body: GZipCodec().encode(utf8.encode(body)));