Hi, I am experimenting with the
<http://kotlinx.io|kotlinx.io>
library in Ktor 3, but having this issue:
call.respondSource(
source = asset.output.source, // <--- this is a Source
contentType = asset.output.contentType
)
This returns an EMPTY response.
call.respondBytes(
bytes = asset.output.source.readByteArray(),
contentType = asset.output.contentType
)
This doesn't. This hardly makes sense to me.
When I set a breakpoint in the first example before the respondSource and run the following expression:
asset.output.source.readText()
I ge the full text (once, of course).