Closed mazhead closed 5 years ago
That's pretty good, @mazhead. Thanks for this change. Do you mind adding unit tests too? :)
@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.
Thanks again for this, @mazhead!
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.