Skip to content

Commit

Permalink
Doble størrelse på default maks størrelse på request header
Browse files Browse the repository at this point in the history
  • Loading branch information
Amirhlotfi committed Nov 26, 2024
1 parent 6529bd6 commit d07051a
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions src/main/kotlin/no/nav/tms/varsel/api/Application.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package no.nav.tms.varsel.api

import io.ktor.server.engine.applicationEngineEnvironment
import io.ktor.server.engine.connector
import io.ktor.server.engine.embeddedServer
import io.ktor.server.netty.Netty
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import io.netty.handler.codec.http.HttpObjectDecoder
import io.netty.handler.codec.http.HttpServerCodec
import no.nav.tms.token.support.tokendings.exchange.TokendingsServiceBuilder
import no.nav.tms.varsel.api.varsel.VarselConsumer

Expand Down Expand Up @@ -32,5 +32,13 @@ fun main() {
port = 8080
}
}
).start(wait = true)
) {
httpServerCodec = {
HttpServerCodec(
HttpObjectDecoder.DEFAULT_MAX_INITIAL_LINE_LENGTH,
16 * 1024, // max header size
HttpObjectDecoder.DEFAULT_MAX_CHUNK_SIZE
)
}
}.start(wait = true)
}

0 comments on commit d07051a

Please sign in to comment.