`call.respondText("Hello", contentType = ContentTy...
# ktor
v
call.respondText("Hello", contentType = ContentType.Application.Json)
Will set the ContentType to
"application/json; charset=UTF-8"
is there any way to remove the
"; charset=UTF-8"
from response content type?
a
This is a bug (KTOR-6183). As a workaround, you can use the following code:
Copy code
call.respond(TextContent("Hello", contentType = ContentType.Application.Json))