https://kotlinlang.org logo
#ktor
Title
# ktor
o

orangy

12/01/2017, 10:15 PM
@noncom I’ve investigated that issue, and it’s pretty simple. You have two handlers installed for the same route
/
, one via
get("/") { Hello.respond(call) }
and second with
defaultResource("index.html")
. They are both executed, and second tries to send a response after it has already been sent by first. Now, the question is what to do: – throw exception when trying to install second handler for the same route. – stop executing handlers when the response has been sent – leave it as is – something else?