I'm a bit confused with this example from readme.m...
# kotlin-fuel
d
I'm a bit confused with this example from readme.md:
Copy code
//if you have body to post it manually
<http://Fuel.post|Fuel.post>("<http://httpbin.org/post>").body("{ \"foo\" : \"bar\" }").response { request, response, result ->
}
For such a body there should be a correct
Content-Type
specified. Something like
application/json
. But for the case like in the example I getting
Content-Type: application/x-www-form-urlencoded; charset=utf-8