You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ktor Version and Engine Used (client or server and name)
1.3.1, server, ktor-server-netty
Describe the bug
Query parameters claim to be case-insensitive, however they are not. Namely, trying to get a query value for a key which differs only in case from the actual one does not find value.
To Reproduce
Steps to reproduce the behavior:
Using the most basic route to extract a parameter:
fun Route.myRoute() = route("my") {
get {
val param = call.request.queryParameters.getOrFail("param")
call.respondText(param)
}
}
Calling queryParameters.caseInsensitiveName returns true which is hardcoded.
However, decoder.parameters() returns a regular map, which fails to resolve parameters case-insensitively.
Expected behavior
Query parameters are resolved in the case-insensitive manner.
The text was updated successfully, but these errors were encountered:
Ktor Version and Engine Used (client or server and name)
1.3.1, server, ktor-server-netty
Describe the bug
Query parameters claim to be case-insensitive, however they are not. Namely, trying to get a query value for a key which differs only in case from the actual one does not find value.
To Reproduce
Steps to reproduce the behavior:
Using the most basic route to extract a parameter:
Calling
queryParameters.caseInsensitiveName
returnstrue
which is hardcoded.However,
decoder.parameters()
returns a regular map, which fails to resolve parameters case-insensitively.Expected behavior
Query parameters are resolved in the case-insensitive manner.
The text was updated successfully, but these errors were encountered: