mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Bangle.js: fix handling http method
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
+3
-1
@@ -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"))
|
||||||
|
|||||||
Reference in New Issue
Block a user