mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Update how we check verify when inspecting env variables
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user