New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query parameters are not case-insensitive #1682
Comments
There is no particular specification regulating case-sensitivity, need to look for first |
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: