diff --git a/flutter/lib/models/ab_model.dart b/flutter/lib/models/ab_model.dart index b126715b0..3300fa67c 100644 --- a/flutter/lib/models/ab_model.dart +++ b/flutter/lib/models/ab_model.dart @@ -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)));