Hello, I’m trying to set “Content-Type” header to just “application/json”, but Ktor client automatically send request with the header set to “application/json; *charset=UTF-8*”. How can I remove the charset parameter from the header? I’m using ktor
2.0.0-beta-1
.
SooYoung
02/05/2022, 5:52 PM
Content-Type
is set to just
application/json
in Ktor
1.6.7
, but it's set to
application/json; charset=UTF-8
in
2.0.0-beta-1
. This causes a regression as our auth service doesn't work with the content type with the charset param. Is there any way to take control of setting the content type header?
a
Aleksei Tirman [JB]
02/07/2022, 8:58 AM
I've created an issue about changed behavior and added a workaround.