Merge pull request #5395 from 21pages/fix
fix gzip threshold changed by mistake
This commit is contained in:
commit
b8b1d9e991
@ -214,7 +214,7 @@ class AbModel {
|
|||||||
});
|
});
|
||||||
http.Response resp;
|
http.Response resp;
|
||||||
// support compression
|
// support compression
|
||||||
if (licensedDevices > 0 && body.length > 102400) {
|
if (licensedDevices > 0 && body.length > 1024) {
|
||||||
authHeaders['Content-Encoding'] = "gzip";
|
authHeaders['Content-Encoding'] = "gzip";
|
||||||
resp = await http.post(Uri.parse(api),
|
resp = await http.post(Uri.parse(api),
|
||||||
headers: authHeaders, body: GZipCodec().encode(utf8.encode(body)));
|
headers: authHeaders, body: GZipCodec().encode(utf8.encode(body)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user