fix gzip threshold changed by mistake
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
a1215749d2
commit
4c25f94bd1
@ -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)));
|
||||
|
Loading…
x
Reference in New Issue
Block a user