Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/requests/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@
from .structures import CaseInsensitiveDict
from .utils import (
DEFAULT_CA_BUNDLE_PATH,
extract_zipped_paths,
get_auth_from_url,
get_encoding_from_headers,
prepend_scheme_if_needed,
Expand Down Expand Up @@ -299,7 +298,7 @@ def cert_verify(self, conn, url, verify, cert):
cert_loc = verify

if not cert_loc:
cert_loc = extract_zipped_paths(DEFAULT_CA_BUNDLE_PATH)
cert_loc = DEFAULT_CA_BUNDLE_PATH

if not cert_loc or not os.path.exists(cert_loc):
raise OSError(
Expand Down
1 change: 1 addition & 0 deletions src/requests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@

NETRC_FILES = (".netrc", "_netrc")

# Certificate is extracted by certifi when needed.
DEFAULT_CA_BUNDLE_PATH = certs.where()

DEFAULT_PORTS = {"http": 80, "https": 443}
Expand Down
Loading