OkHttp seems to convert in-flight POST and PUT requests to GET requests if the body provided is null. This is surprising.
In order to address this, RestOptions should be changed to:
RestOptions.Builderdata is null, pass an empty byte[]when will this bug be addressed?
@c0rdeiro Soon. :) For now, you can work around it by providing an empty body. A better fix is forthcoming.
Thank you so much, this was driving me insane in the last 2 days
Same here! Sorry for the trouble.
Got a PR for it right here @c0rdeiro : https://github.com/aws-amplify/amplify-android/pull/539