Skip to content

Comments

implement support for query parameters that allow multiple values#1553

Draft
ahl wants to merge 1 commit intomainfrom
multi-query
Draft

implement support for query parameters that allow multiple values#1553
ahl wants to merge 1 commit intomainfrom
multi-query

Conversation

@ahl
Copy link
Collaborator

@ahl ahl commented Feb 23, 2026

This switches our querystring parsing to use serde_qs, which seems more specifically focused on that, from serde_urlencoded. One drawback is that serde_qs permits a query parameter for which a single value is permitted to appear multiple times within the query string without reporting an error. Instead it silently accepts the last one.

If we believe that this is an obstacle, I believe we could augment the Config object in serde_qs to optionally turn this modality into an error.

This switches our querystring parsing to use serde_qs, which seems
more specifically focused on that, from serde_urlencoded. One
drawback is that serde_qs permits a query parameter for which a
single value is permitted to appear multiple times within the
query string without reporting an error. Instead it silently
accepts the last one.

If we believe that this is an obstacle, I believe we could augment
the `Config` object in serde_qs to optionally turn this modality
into an error.
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.

1 participant