-
-
Notifications
You must be signed in to change notification settings - Fork 381
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
Accept custom HTTP headers when reading over HTTP(S) #272
Accept custom HTTP headers when reading over HTTP(S) #272
Conversation
Does this version look good? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Left you a minor comment. Please add unit tests.
I added a unit test, but I wasn't able to understand why it didn't run (after reading the travis ci output). It seems like I did the exact same thing as the other unit tests. So I don't know why it failed. |
@mpenkov @piskvorky Any help? The output looks a little different than I remember from a couple months ago, but any points can still help = ) |
@canada11 Have you tried running the test locally? Does it pass? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor code style comments.
OK, this looks good to merge. @canada11 Thank you for your efforts, and congrats on your first contribution to smart_open 🥇 Keep them coming! @interpolatio Thanks for helping us work out the unit test problems. |
Http calls woudn't take headers before. I added two changes that allows http calls to now accept user defined headers for http calls.