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

Add client header option to requests #61

Merged
merged 5 commits into from
Mar 31, 2019
Merged

Add client header option to requests #61

merged 5 commits into from
Mar 31, 2019

Conversation

mazhead
Copy link
Contributor

@mazhead mazhead commented Mar 19, 2019

This would add client header option to the requests.
Would help in some particular cases where header is expected.

Note: The request headers needs to be a dictionary.

Feel free to modify if it does not fit your coding style.

@mtakaki
Copy link
Owner

mtakaki commented Mar 21, 2019

That's pretty good, @mazhead. Thanks for this change. Do you mind adding unit tests too? :)

environ does not support dictionaries, so HEADER can't be passed.
@mazhead
Copy link
Contributor Author

mazhead commented Mar 21, 2019

@mtakaki added unit tests. Basically to just check if with header and without header the response is correct. I had to remove the os.environ for HEADER as it does not support dict.

Repository owner deleted a comment Mar 21, 2019
@mtakaki mtakaki merged commit 3af53ce into mtakaki:master Mar 31, 2019
@mtakaki
Copy link
Owner

mtakaki commented Apr 1, 2019

Thanks again for this, @mazhead!

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