Skip to content

Commit 39f0c66

Browse files
committed
Merge pull request psf#2115 from sigmavirus24/fix-2092
Update how we check verify when inspecting env variables
2 parents 538a41e + 3957b0b commit 39f0c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

requests/sessions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,11 +436,11 @@ def request(self, method, url,
436436
proxies.setdefault(k, v)
437437

438438
# Look for configuration.
439-
if not verify and verify is not False:
439+
if verify is True or verify is None:
440440
verify = os.environ.get('REQUESTS_CA_BUNDLE')
441441

442442
# Curl compatibility.
443-
if not verify and verify is not False:
443+
if verify is True or verify is None:
444444
verify = os.environ.get('CURL_CA_BUNDLE')
445445

446446
# Merge all the kwargs.

0 commit comments

Comments
 (0)