commit | e3e7d40514e5dd0c3847682a719577efcfae1d8f | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Nov 23 21:02:02 2014 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Nov 23 21:02:02 2014 -0600 |
tree | fa309a48cefeaaf043c182dcca5e7ab58ab8200f | |
parent | b206473ef8a7abe9abf5ab8776ea3bcb90adc747 [diff] [blame] |
pep 476: verify certificates by default (#22417)
diff --git a/Lib/httplib.py b/Lib/httplib.py index 48fbcb6..7c27906 100644 --- a/Lib/httplib.py +++ b/Lib/httplib.py
@@ -1193,7 +1193,7 @@ self.key_file = key_file self.cert_file = cert_file if context is None: - context = ssl.create_default_context() + context = ssl._create_default_https_context() will_verify = context.verify_mode != ssl.CERT_NONE if check_hostname is None: check_hostname = will_verify