if verify is not True:
cert_loc = verify
- # Look for configuration.
- if not cert_loc and self.config.get('trust_env'):
- cert_loc = os.environ.get('REQUESTS_CA_BUNDLE')
-
- # Curl compatibility.
- if not cert_loc and self.config.get('trust_env'):
- cert_loc = os.environ.get('CURL_CA_BUNDLE')
-
if not cert_loc:
cert_loc = DEFAULT_CA_BUNDLE_PATH
requests (cookies, auth, proxies).
"""
+import os
from .compat import cookielib
from .cookies import cookiejar_from_dict
if not auth:
auth = get_netrc_auth(url)
+ # Look for configuration.
+ if not verify and verify is not False:
+ verify = os.environ.get('REQUESTS_CA_BUNDLE')
+
+ # Curl compatibility.
+ if not verify and verify is not False:
+ verify = os.environ.get('CURL_CA_BUNDLE')
+
+
# Merge all the kwargs.
params = merge_kwargs(params, self.params)
headers = merge_kwargs(headers, self.headers)