mirror of
https://github.com/jlengrand/ktor.git
synced 2026-03-10 08:31:20 +00:00
Upgrade Tomcat to 9.0.29
This commit is contained in:
@@ -857,10 +857,13 @@ abstract class EngineTestSuite<TEngine : ApplicationEngine, TConfiguration : App
|
||||
}
|
||||
|
||||
val responses = s.getInputStream().bufferedReader(Charsets.ISO_8859_1).lineSequence()
|
||||
.filterNot {
|
||||
it.startsWith("Date") || it.startsWith("Server") || it.startsWith("Content-") || it.toIntOrNull() != null || it.isBlank() || it.startsWith(
|
||||
"Connection"
|
||||
)
|
||||
.filterNot { line ->
|
||||
line.startsWith("Date") || line.startsWith("Server")
|
||||
|| line.startsWith("Content-")
|
||||
|| line.toIntOrNull() != null
|
||||
|| line.isBlank()
|
||||
|| line.startsWith("Connection")
|
||||
|| line.startsWith("Keep-Alive")
|
||||
}
|
||||
.map { it.trim() }
|
||||
.joinToString(separator = "\n").replace("200 OK", "200")
|
||||
|
||||
@@ -4,8 +4,8 @@ kotlin.sourceSets {
|
||||
jvmMain.dependencies {
|
||||
api project(':ktor-server:ktor-server-host-common')
|
||||
api project(':ktor-server:ktor-server-servlet')
|
||||
api group: 'org.apache.tomcat', name: 'tomcat-catalina', version: '9.0.10'
|
||||
api group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '9.0.10'
|
||||
api group: 'org.apache.tomcat', name: 'tomcat-catalina', version: '9.0.29'
|
||||
api group: 'org.apache.tomcat.embed', name: 'tomcat-embed-core', version: '9.0.29'
|
||||
}
|
||||
jvmTest.dependencies {
|
||||
api project(':ktor-server:ktor-server-test-host')
|
||||
|
||||
Reference in New Issue
Block a user