-
-
Notifications
You must be signed in to change notification settings - Fork 168
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 not compared independent of order #288
Comments
By the standard, order or query values does matter. If sorting by order works for you -- that's fine. You can do it manually without the library modification. |
I was thinking a method like |
I'm sorry, but |
In a majority of cases
URL('http://example.com/?foo=bar&test=1')
should be equivalent toURL('http://example.com/?test=1&foo=bar')
, but they are treated as unique and there does not seem to be any extra methods for an order-independent comparison. I've had to do something similar tourl.with_query(MultiDict(sorted(url.query.items())))
to bothURL
objects before comparing them.A method on the
URL
object to do this sort of comparison would be quite useful, or maybe even implementing it in the normal comparison methods.The text was updated successfully, but these errors were encountered: