mirror of
https://github.com/JGeek00/adguard-home-manager.git
synced 2025-05-31 11:52:16 +00:00
Fixed issue on post requests
This commit is contained in:
parent
97a25fb8e9
commit
441dad441d
5 changed files with 24 additions and 7 deletions
|
@ -36,7 +36,7 @@ Future<http.Response> postRequest({
|
|||
headers: {
|
||||
'Authorization': 'Basic ${server.authToken}'
|
||||
},
|
||||
body: body ?? stringBody
|
||||
body: (body != null ? jsonEncode(body) : null) ?? stringBody
|
||||
).timeout(const Duration(seconds: 10));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue