Join Slack
Communities
Powered by
Hi all! Why does the Content-Type header gets remo...
# ktor
r
Ronald van D
03/08/2021, 1:26 PM
Hi all! Why does the Content-Type header gets removed when using the JsonFeature for Ktor Client in multiplatform? The header seems to get removed at line 144
https://github.com/ktorio/ktor/blob/master/ktor-client/ktor-client-features/ktor-c[…]ent-json/common/src/io/ktor/client/features/json/JsonFeature.kt
. We use a custom HttpEngine and our API expects the Content-Type header. I’ve gone over a bunch of ways to add the header but none of them seem to work, we have a work-around but it’s pretty dirty. Any insights on how to add the Content-Type header?
2
Views
Open in Slack
Previous
Next