URL.include_query_params overwrites query string parameters with the same name #1735
Unanswered
lexabug
asked this question in
Potential Issue
Replies: 2 comments 1 reply
-
I think that this issue is due to the way that, as
Basically, Do we want to add a provision for that kind of usage? E.g. there could be an overload: def include_query_params(self, *items: typing.Union[
ImmutableMultiDict[str, str]",
typing.Mapping[str, str],
typing.Iterable[typing.Tuple[str, str]],
],
): ... |
Beta Was this translation helpful? Give feedback.
1 reply
-
Here is the PR for that #1738 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've noticed that the
URL.include_query_params()
overwrites query string parameters with the same name. For example:So the
new_url
will be:Which is incorrect. The specification of the URLs allows multiple query string parameters with the same name, so the backend that should process that query string must correctly treat such parameters as arrays/lists.
Beta Was this translation helpful? Give feedback.
All reactions