Skip to content
Myr

CURL_CA_BUNDLE

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 910b231 · Browse files · 2 files+10 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−8 removed

  • other:+10 added−8 removed

2 files+10 added−8 removed

modified:requests/adapters.py-8 removed
62 unmodified lines
63 # Allow self-specified cert location.64 if verify is not True:65 cert_loc = verify6667 # Look for configuration.68 if not cert_loc and self.config.get('trust_env'):69 cert_loc = os.environ.get('REQUESTS_CA_BUNDLE')7071 # Curl compatibility.72 if not cert_loc and self.config.get('trust_env'):73 cert_loc = os.environ.get('CURL_CA_BUNDLE')7467 if not cert_loc:68 cert_loc = DEFAULT_CA_BUNDLE_PATH6970 if not cert_loc:
108 unmodified lines
modified:requests/sessions.py+10 added
6 unmodified lines
7This module provides a Session object to manage and persist settings across8requests (cookies, auth, proxies).910"""11import os1213from .compat import cookielib14from .cookies import cookiejar_from_dict15from .models import Request
210 unmodified lines
226 # Set environment's basic authentication.227 if not auth:228 auth = get_netrc_auth(url)229230 # Look for configuration.231 if not verify and verify is not False:232 verify = os.environ.get('REQUESTS_CA_BUNDLE')233234 # Curl compatibility.235 if not verify and verify is not False:236 verify = os.environ.get('CURL_CA_BUNDLE')237238239 # Merge all the kwargs.240 params = merge_kwargs(params, self.params)241 headers = merge_kwargs(headers, self.headers)242 auth = merge_kwargs(auth, self.auth)
143 unmodified lines