Skip to content
This repository has been archived by the owner on Aug 10, 2024. It is now read-only.

Commit

Permalink
switch back to Jetty
Browse files Browse the repository at this point in the history
  • Loading branch information
sanity committed Nov 4, 2022
1 parent e175dd4 commit 7cd1884
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/kweb/Kweb.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.*
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 7cd1884

Please sign in to comment.