Skip to content
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

Maintain order of query params #1857

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

jguerra
Copy link
Collaborator

@jguerra jguerra commented Dec 16, 2024

Switch from ArrayListMultimap to LinkedListMultimap. Both of these data structures are ListMultimap, but LinkedListMultimap supports deterministic iteration order. Query parameter order is now preserved between parsing and rebuilding


public HttpQueryParams() {
delegate = ArrayListMultimap.create();
delegate = LinkedListMultimap.create();
Copy link
Contributor

Choose a reason for hiding this comment

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

Very nice!

Copy link
Contributor

@lalernehl lalernehl left a comment

Choose a reason for hiding this comment

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

LGTM

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