Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix gzip threshold changed by mistake

21pages4c25f94bd1f8
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)));