KamilH
02/19/2021, 12:52 PMContent-Type
header is application/octet-stream
. That is why when I’m requesting this resource, I’m getting No transformation found
exception, because Json serializer doesn’t know it should parse this file. When I tell serializer to handle also this content type it works properly:
install(JsonFeature) {
serializer = serializerProvider.get()
accept(ContentType.Application.Json, ContentType.Application.OctetStream)
}
but it fell a little bit hacky to do it for all requests
Is there a better solution? (of course the best it would be to fix it on the API side, but I don’t have an access to it)Ali Albaali
02/19/2021, 4:52 PMKamilH
02/19/2021, 5:04 PM