Fix DELETE request sending contents on Android

Strings compared by reference and not contents
This commit is contained in:
Daniel Freiling
2016-07-06 16:10:06 +02:00
parent 8368c42716
commit 7c60834151

View File

@@ -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);
}