Closed nbaklanov-issart closed 5 years ago
I checked this once again and found that body-type wasn't change it was a bug in proxy program. It displayed wrong value for body-type.
I didn't found a real reason why I was getting those errors (maybe because of some server logic), but when I changed engine for android from Android to OkHttp problem disappeared.
Hi @nbaklanov-issart, the additional report was added in 1.2.0
.
Ktor Version
1.0.1
Ktor Engine Used(client or server and name)
Ktor Clients.
Creating client:
JVM Version, Operating System and Relevant Context
Android 4.4.2 - 5.0.1
Feedback
Hello, everyone. I am working on the mobile multiplatform project and using .ktor on client side (on Android phones).
I have following code to send POST requests :
And I calling this function passing body with json type as parameter :
Everything working fine, but on Android 4.4.2 content-type of the request is changed to “text/html; charset=iso-8859-1” (according to proxy logs).
I am doing something wrong, or it’s natural behaviour of this Android version?
Thanks.