Skip to content

Commit

Permalink
disable content negotiation
Browse files Browse the repository at this point in the history
  • Loading branch information
alpet committed Jul 4, 2024
1 parent f65b4be commit b4ee600
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions ebms-provider/src/main/kotlin/no/nav/emottak/ebms/App.kt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import io.ktor.http.HttpStatusCode
import io.ktor.http.content.PartData
import io.ktor.http.content.forEachPart
import io.ktor.http.content.streamProvider
import io.ktor.serialization.kotlinx.json.json
import io.ktor.server.application.Application
import io.ktor.server.application.ApplicationCall
import io.ktor.server.application.call
Expand All @@ -21,7 +20,6 @@ import io.ktor.server.application.install
import io.ktor.server.engine.embeddedServer
import io.ktor.server.metrics.micrometer.MicrometerMetrics
import io.ktor.server.netty.Netty
import io.ktor.server.plugins.contentnegotiation.ContentNegotiation
import io.ktor.server.request.contentType
import io.ktor.server.request.header
import io.ktor.server.request.receive
Expand Down Expand Up @@ -112,18 +110,18 @@ fun Application.ebmsProviderModule() {
val appMicrometerRegistry = PrometheusMeterRegistry(PrometheusConfig.DEFAULT)
installMicrometerRegistry(appMicrometerRegistry)
installRequestTimerPlugin()

/*
install(ContentNegotiation) {
json()
}

*/
routing {
get("/") {
call.respondText("Hello, world!")
}

registerHealthEndpoints(appMicrometerRegistry)
navCheckStatus()
// navCheckStatus()
postEbmsAsync(validator, processing)
postEbmsSync(validator, processing, sendInService)
}
Expand Down

0 comments on commit b4ee600

Please sign in to comment.