Hey :wave: I’m using ktor client with Json featur...
# ktor
r
Hey 👋 I’m using ktor client with Json feature installed. Some of my requests are downloading json files via
ByteReadChannel
(I just need to save them in local file storage) but looks like ktor is running those through json parsing as well (probably because content type is
application/json
). This results in an exception, because there’s not enough information to deserialize response data. Any hints? Or should I just file a github issue? Thanks!
I’ve read through ktor client code and looks like for downloading files I need a separate client instance without Json feature. Works as a workaround but I’m still curious if this is the only way to go.