Merge pull request #5485 from 21pages/ab

fix pushAb
This commit is contained in:
RustDesk
2023-08-23 12:51:12 +08:00
committed by GitHub

View File

@@ -225,7 +225,7 @@ class AbModel {
final api = "${await bind.mainGetApiServer()}/api/ab";
var authHeaders = getHttpHeaders();
authHeaders['Content-Type'] = "application/json";
final body = jsonEncode(_serialize());
final body = jsonEncode({"data": jsonEncode(_serialize())});
http.Response resp;
// support compression
if (licensedDevices > 0 && body.length > 1024) {