Fix respondStatus Content-Type
This commit is contained in:
parent
5b748e1c10
commit
071ce40ac6
@ -7,7 +7,11 @@ import io.ktor.http.*
|
||||
import io.ktor.response.*
|
||||
|
||||
suspend fun ApplicationCall.respondStatus(status: HttpStatusCode) {
|
||||
respond(status, """{"status": "${status.description}"}""")
|
||||
respondText(
|
||||
"""{"status": "${status.description}"}""",
|
||||
status = status,
|
||||
contentType = ContentType.Application.Json
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user