Merge pull request #5395 from 21pages/fix
fix gzip threshold changed by mistake
This commit is contained in:
commit
b8b1d9e991
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue