Skip to content

Commit 9e0427d

Browse files
committed
proper method to post user loc
1 parent fa9f2fd commit 9e0427d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/com/hydrologis/smash/import_export_plugins/utils/gss_server_api.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ class ServerApi {
215215
var dataJson = jsonEncode(data);
216216
var headers = {'Content-Type': 'application/json; charset=UTF-8'}
217217
..addAll(tokenHeader);
218-
var response = await put(uri, body: dataJson, headers: headers);
218+
var response = await post(uri, body: dataJson, headers: headers);
219219
if (response.statusCode != 200) {
220220
print(response.body);
221221
throw new StateError(response.body);

0 commit comments

Comments
 (0)