when POST-ing a json body the generated request contains both of these headers
Content-Type : application/x-www-form-urlencoded
content-type : application/json
Steps to reproduce the behavior:
val curl = Fuel.post("https://someurl.com")
.jsonBody(body = "{}")
.cUrlString()
println(curl)
the POST request should have only one Content-Type
Correct. @markGilchrist I want to change the behaviour so that:
for now #474 fixes it without a complete rewrite of headers, but it would break if somone sets a Content type and then calls jsonBody
but it should be obvious to users that it will break
This is the same issue as #472.