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
Possibility to turn off ssl certificate validation and proxy connection #105
Conversation
tosher
commented
Dec 22, 2015
- Possibility to turn off ssl certificate validation (for self-signed certs on corp. wikies)
- Proxy connection support.
Sorry for the delay on this! The argument name |
I'd be very happy if **kwargs is passed on to requests. |
It will be requests specified kwargs? class Site(object):
def __init__(self, ..... **kwargs):
self.kwargs = kwargs
# ...
# in raw_call
stream = self.connection.post(fullurl, data=data, files=files, headers=headers, **self.kwargs) |
👍 @tosher . But please name it something like |
done |
This kind of change should really be accompanied by tests. This is messing with the core security of this library, and getting it wrong could mean the certificate verification gets disabled for people who need it. |
|
Maybe, variant like this will be better? Special parameter for requests library, not global kwargs.. |
Agree, that's a better solution since we will never get a conflict with internal arguments. Would you mind updating the pull request? Then I can merge it right away. Sorry I forgot about this. |
Ok, I will.. |
Travis is broken? |
Related to one of the deps, we can ignore that. Being a little picky, I'm not sure if we need to introduce kwargs here.. I'd suggest just adding
(since adding Also, could you squash all the commits into one commit? Just do a |
:) No problem, i'll remove kwargs.
ok |
@danmichaelo for future reference, PRs can now be squashed at merge time by the maintainer, so there's no need for the awkward |
Oooh, that's useful |
Done.
P.S. I'm skipped the dance :) |
Thanks, no dance needed :) |