Skip to content

Match query param names verbatim in HttpQueryParams.get - #2213

Merged
jguerra merged 1 commit into
Netflix:masterfrom
lenamonj:query-params-verbatim-names
Sep 23, 2026
Merged

jguerra merged 1 commit into
Netflix:masterfrom
lenamonj:query-params-verbatim-names

Conversation

@lenamonj

@lenamonj lenamonj commented Sep 6, 2026

Copy link
Copy Markdown
Contributor

HttpQueryParams.get(String) lower-cased the lookup key while names are stored verbatim, so every parameter whose name carries an uppercase letter returned an empty list, and get disagreed with getFirst and contains, which match verbatim. containsIgnoreCase folded only the argument, so it missed a stored name with any uppercase letter.

get now matches the stored name, and containsIgnoreCase compares against the stored names case-insensitively. Three tests cover both; the get cases fail on master.

@jguerra jguerra left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

@jguerra
jguerra merged commit 934f251 into Netflix:master Sep 23, 2026
3 checks passed
@lenamonj
lenamonj deleted the query-params-verbatim-names branch September 23, 2026 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants