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

giso

05/09/2022, 10:13 AM
Hi there, I am currently struggling with a behavioural change in Ktor 2 client with the ContentNegotiation plugin. We have a base HttpClient configured with a default json configuration. Then we have a special HttpClient derived from the former with
.config()
and a dedicated Json configuration. With Ktor 2 we now end up with a dedicated HttpClient containing 2 json registration, where the default json config is always winning, effectively disabling the dedicated Json configuration. Is there a way to remove the first registration? Or is this maybe even a bug?
a

Aleksei Tirman [JB]

05/09/2022, 11:14 AM
This is most likely a bug. I’ve created an issue.
🙏 1