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

Fixes process_request_options(options) for adding more params via base module #222

Merged
merged 1 commit into from
Feb 6, 2017

Conversation

romainhaenni
Copy link

@romainhaenni romainhaenni commented Feb 6, 2017

it is currently not possible to add default params via the base module with process_request_options(options) since the call in HTTPoison.Base.request/5 is after adding :params to the URL.

For APIs which consuming e.g. the API key as param on each request, it would be nice to add this as default via the resp. function in the wrapper module.

Furthermore, i added a test for setting params.

@edgurgel
Copy link
Owner

edgurgel commented Feb 6, 2017

Thank you! I will release a new version soon with this change.

@edgurgel edgurgel merged commit 9c75517 into edgurgel:master Feb 6, 2017
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