Shan
10/17/2019, 10:46 PMRequest of type HttpMethod(value=GET) couldn't send a body with the Android engine.
I see that specifically on the Android engine I cannot send a GET request with an empty body but am unsure of the reasoning for this.e5l
10/18/2019, 10:16 AMabsent
and empty
here.e5l
10/18/2019, 10:17 AMAndroid
engine uses UrlConnection
under the hood.Shan
10/18/2019, 7:33 PMcontentType(ContentType.Application.Json)
). When making a GET request with the ContentType as Json it adds an empty {}
to the body (even when not setting the body at all, or manually setting it to NoContent) which makes the body appear to have something inside of it I suppose. I did a manual if (method != HttpMethod.Get) contentType(ContentType.Application.Json)
in my default HttpRequestBuilder block and it is working alright now, though I'm not sure that's intended behavior.