Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(89705)

Unified Diff: Lib/http/client.py

Issue 22417: PEP 476: verify HTTPS certificates by default
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Doc/whatsnew/3.5.rst ('k') | Lib/ssl.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/http/client.py Mon Oct 13 10:39:41 2014 +0100
+++ b/Lib/http/client.py Mon Oct 13 10:26:38 2014 -0700
@@ -1267,7 +1267,7 @@
self.key_file = key_file
self.cert_file = cert_file
if context is None:
- context = ssl._create_stdlib_context()
+ context = ssl._create_default_https_context()
will_verify = context.verify_mode != ssl.CERT_NONE
if check_hostname is None:
check_hostname = will_verify
« no previous file with comments | « Doc/whatsnew/3.5.rst ('k') | Lib/ssl.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+