diff --git a/android/widgets/src/main/java/org/nativescript/widgets/Async.java b/android/widgets/src/main/java/org/nativescript/widgets/Async.java index 1d3fd76ea..e09004211 100644 --- a/android/widgets/src/main/java/org/nativescript/widgets/Async.java +++ b/android/widgets/src/main/java/org/nativescript/widgets/Async.java @@ -288,7 +288,7 @@ public class Async } // Do not attempt to write the content (body) for DELETE method, Java will throw directly - if (requestMethod != DeleteMethod) + if (!requestMethod.equals(DeleteMethod)) { options.writeContent(connection, openedStreams); }