https://kotlinlang.org logo
#ktor
Title
# ktor
j

jdiaz

08/15/2021, 3:38 PM
When using Json I see the JsonFeature removing the content-type ([here](https://github.com/ktorio/ktor/blob/main/ktor-client/ktor-client-features/ktor-cli[…]ent-json/common/src/io/ktor/client/features/json/JsonFeature.kt)), do I need to add it anywhere else? I have it in the defaultRequest but the jsonFeature is being installed after the default so it is never present
It works if I move out of the
defaultRequest
and do it inside the client.post() {}
2 Views