I’ve got an endpoint that returns valid JSON with `Content-Type text/html; charset=UTF-8`. The respo...
m
I’ve got an endpoint that returns valid JSON with
Content-Type text/html; charset=UTF-8
. The response is as follows
{ "result": [ "foo", "bar" ] }
. When I try to serialize this into a POJO Ktor I get the following error:
No transformation found: class io.ktor.utils.io.ByteBufferChannel -> class FooList
This is most certainly about the wrong
Content-Type
, but in this case I cannot change the server