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

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.4.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 Sun Nov 02 22:19:56 2014 +0200
+++ b/Lib/http/client.py Mon Nov 03 09:50:32 2014 -0800
@@ -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.4.rst ('k') | Lib/ssl.py » ('j') | no next file with comments »

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