mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fix DELETE request sending contents on Android
Strings compared by reference and not contents
This commit is contained in:
@@ -288,7 +288,7 @@ public class Async
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Do not attempt to write the content (body) for DELETE method, Java will throw directly
|
// 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);
|
options.writeContent(connection, openedStreams);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user