Bangle.js: fix handling http method

This commit is contained in:
Logan B
2026-01-24 20:04:38 -06:00
parent a8415c035e
commit 9235719642
2 changed files with 4 additions and 1 deletions
+1
View File
@@ -83,6 +83,7 @@
* Improve zip export speed * Improve zip export speed
* Keep screen on during zip export / import * Keep screen on during zip export / import
* Make GenericWeatherReceiver work without any connected devices * Make GenericWeatherReceiver work without any connected devices
* Bangle.js: Fix handling HTTP method
#### 0.88.0 #### 0.88.0
@@ -887,7 +887,9 @@ public class BangleJSDeviceSupport extends AbstractBTLESingleDeviceSupport {
String url = json.getString("url"); String url = json.getString("url");
final boolean insecure = json.optBoolean("insecure", false); final boolean insecure = json.optBoolean("insecure", false);
String method = "GET"; String method = "GET";
if (json.has("method")) json.getString("method").toUpperCase(Locale.US); if (json.has("method")) {
method = json.getString("method").toUpperCase(Locale.US);
}
String body = null; String body = null;
if (json.has("body")) if (json.has("body"))