diff --git a/build.gradle.kts b/build.gradle.kts index f6b2c1cd78..9579e6645f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,7 +40,7 @@ dependencies { //////////////////// // Ktor dependencvies //////////////////// - api("io.ktor:ktor-server-netty:2.1.3") + api("io.ktor:ktor-server-jetty:2.1.3") api("io.ktor:ktor-server-websockets:2.1.3") api("io.ktor:ktor-server-default-headers:2.1.3") api("io.ktor:ktor-server-compression:2.1.3") diff --git a/src/main/kotlin/kweb/Kweb.kt b/src/main/kotlin/kweb/Kweb.kt index ce34068e80..1d7dd1751e 100755 --- a/src/main/kotlin/kweb/Kweb.kt +++ b/src/main/kotlin/kweb/Kweb.kt @@ -11,7 +11,7 @@ import io.ktor.server.request.* import io.ktor.server.response.* import io.ktor.server.routing.* import io.ktor.server.engine.* -import io.ktor.server.netty.* +import io.ktor.server.jetty.* import io.ktor.server.plugins.defaultheaders.* import io.ktor.server.plugins.compression.* import io.ktor.server.websocket.* @@ -189,7 +189,7 @@ class Kweb private constructor( httpsConfig: EngineSSLConnectorConfig?, buildPage: WebBrowser.() -> Unit ): ApplicationEngine { - return embeddedServer(Netty, applicationEngineEnvironment { + return embeddedServer(Jetty, applicationEngineEnvironment { this.module { install(DefaultHeaders) install(Compression)