I need to send an empty response, just with some h...
# ktor
m
I need to send an empty response, just with some headers (status, location). Actually I do it this way:
Copy code
val user = call.receive<User>()
val id = UserService.create(user)
call.response.header("Location", "/api/users/$id")
call.response.status(HttpStatusCode.Created)
call.respond("")
How can I send the response without the empty string which results in an empty line?