commit
228b670b4f
@ -225,7 +225,7 @@ class AbModel {
|
|||||||
final api = "${await bind.mainGetApiServer()}/api/ab";
|
final api = "${await bind.mainGetApiServer()}/api/ab";
|
||||||
var authHeaders = getHttpHeaders();
|
var authHeaders = getHttpHeaders();
|
||||||
authHeaders['Content-Type'] = "application/json";
|
authHeaders['Content-Type'] = "application/json";
|
||||||
final body = jsonEncode(_serialize());
|
final body = jsonEncode({"data": jsonEncode(_serialize())});
|
||||||
http.Response resp;
|
http.Response resp;
|
||||||
// support compression
|
// support compression
|
||||||
if (licensedDevices > 0 && body.length > 1024) {
|
if (licensedDevices > 0 && body.length > 1024) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user