Update how we check verify when inspecting env variables

This commit is contained in:
Ian Cordasco
2014-07-02 10:26:15 -05:00
parent de2cd2e9c8
commit 84f67379c8
+2 -2
View File
@@ -436,11 +436,11 @@ class Session(SessionRedirectMixin):
proxies.setdefault(k, v)
# Look for configuration.
if not verify and verify is not False:
if verify is True or (verify is None and verify is not False):
verify = os.environ.get('REQUESTS_CA_BUNDLE')
# Curl compatibility.
if not verify and verify is not False:
if verify is True or (verify is None and verify is not False):
verify = os.environ.get('CURL_CA_BUNDLE')
# Merge all the kwargs.