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

Handle multiple params of the same name properly #298

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

Conversation

tchap
Copy link

@tchap tchap commented Apr 22, 2016

In case we try to call consumer.get('URL?param=1&param=2'), the library
generates incorrect URL. That is because it internally parses the URL so
that the params are actually called param[0] and param[1].

This patch fixed the param names so that the resulting URL is actually
including param=1 and param=2.

This is what was proposed in #71 and it fixes #71 .

In case we try to call consumer.get('URL?param=1&param=2'), the library
generates incorrect URL. That is because it internally parses the URL so
that the params are actually called 'param[0]' and 'param[1]'.

This patch fixed the param names so that the resulting URL is actually
including 'param=1' and 'param=2'.
@HelbertCampos
Copy link

Works for me. Tks!

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.

Does not allow for multiple querystring parameters with the same name
2 participants