Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27cd9e7 commit a0d95a8Copy full SHA for a0d95a8
1 file changed
lib/request/httpshandler.py
@@ -19,7 +19,7 @@
19
except ImportError:
20
pass
21
22
-_protocols = [ssl.PROTOCOL_TLSv1, ssl.PROTOCOL_SSLv23]
+_protocols = filter(None, (getattr(ssl, _, None) for _ in ("PROTOCOL_SSLv3", "PROTOCOL_TLSv1", "PROTOCOL_SSLv23", "PROTOCOL_SSLv2")))
23
24
class HTTPSConnection(httplib.HTTPSConnection):
25
"""
0 commit comments