Merge pull request #5395 from 21pages/fix

fix gzip threshold changed by mistake
This commit is contained in:
RustDesk
2023-08-15 12:59:25 +08:00
committed by GitHub

View File

@@ -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)));