Skip to content

Commit

Permalink
Gjøre koden lik
Browse files Browse the repository at this point in the history
  • Loading branch information
gtcno committed May 18, 2021
1 parent a56c478 commit 6be662e
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import io.ktor.application.install
import io.ktor.features.DefaultHeaders
import io.ktor.http.ContentType
import io.ktor.http.HttpStatusCode
import io.ktor.response.respond
import io.ktor.response.respondText
import io.ktor.response.respondTextWriter
import io.ktor.routing.Route
Expand Down Expand Up @@ -48,7 +47,7 @@ fun Route.healthRoutes(healthChecks: List<HealthCheck>) {
failedHealthChecks.forEach {
LOGGER.warn { "Health check '${it.name}' failed" }
}
call.respond(HttpStatusCode.ServiceUnavailable, "ERROR")
call.respondText("ERROR", ContentType.Text.Plain, HttpStatusCode.ServiceUnavailable)
} else {
call.respondText("ALIVE", ContentType.Text.Plain)
}
Expand Down

0 comments on commit 6be662e

Please sign in to comment.