use _buildUri in quote

This commit is contained in:
sneurlax 2023-01-25 11:06:27 -06:00
parent e2ec733211
commit f87acdc721

View file

@ -180,8 +180,7 @@ class SimplexAPI {
if (userID != null) { if (userID != null) {
data['USER_ID'] = userID; data['USER_ID'] = userID;
} }
Uri url = Uri.https('simplex-sandbox.stackwallet.com', 'api.php', data); Uri url = _buildUri('api.php', data);
// TODO update to stackwallet.com hosted API and use HTTPS
var res = await http.get(url, headers: headers); var res = await http.get(url, headers: headers);
if (res.statusCode != 200) { if (res.statusCode != 200) {