Skip to content

Queries: match any repeated query value - #813

Open
team-humaki wants to merge 1 commit into
gorilla:mainfrom
team-humaki:query-multi-value
Open

team-humaki wants to merge 1 commit into
gorilla:mainfrom
team-humaki:query-multi-value

Conversation

@team-humaki

Copy link
Copy Markdown

Fixes #754

Queries("sections", "130") did not match ?sections=90&sections=130 because only the first occurrence of the key was tested. Walk every value for that key and use the first pair that matches the route regexp, so later duplicates can match and fill vars.

Fixes gorilla#754. Queries("sections","130") missed ?sections=90&sections=130
because only the first occurrence was tested. Walk all values for the
key and use the first pair that matches the route regexp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Support multi-value query string parameters

1 participant