diff --git a/ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/NettyApplicationRequest.kt b/ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/NettyApplicationRequest.kt index 35a138ab367..0beef92864e 100644 --- a/ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/NettyApplicationRequest.kt +++ b/ktor-server/ktor-server-netty/jvm/src/io/ktor/server/netty/NettyApplicationRequest.kt @@ -29,7 +29,7 @@ public abstract class NettyApplicationRequest( ) : BaseApplicationRequest(call), CoroutineScope { public final override val queryParameters: Parameters = object : Parameters { - private val decoder = QueryStringDecoder(uri) + private val decoder = QueryStringDecoder(uri, HttpConstants.DEFAULT_CHARSET, true, 1024, true) override val caseInsensitiveName: Boolean get() = true override fun getAll(name: String) = decoder.parameters()[name] override fun names() = decoder.parameters().keys diff --git a/ktor-server/ktor-server-test-suites/jvm/src/io/ktor/server/testing/suites/HttpServerTestSuite.kt b/ktor-server/ktor-server-test-suites/jvm/src/io/ktor/server/testing/suites/HttpServerTestSuite.kt index 6ee709b75d4..4ec0807d63e 100644 --- a/ktor-server/ktor-server-test-suites/jvm/src/io/ktor/server/testing/suites/HttpServerTestSuite.kt +++ b/ktor-server/ktor-server-test-suites/jvm/src/io/ktor/server/testing/suites/HttpServerTestSuite.kt @@ -785,6 +785,28 @@ abstract class HttpServerTestSuite