Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7380731

Browse files
committed
minor updates
1 parent 7b282b1 commit 7380731

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

doc/THANKS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ Johnny Venter <[email protected]>
577577
Carlos Gabriel Vergara <[email protected]>
578578
for suggesting couple of good features
579579

580+
Patrick Webster <[email protected]>
581+
for suggesting an enhancement
582+
580583
Ed Williams <[email protected]>
581584
for suggesting a minor enhancement
582585

lib/request/httpshandler.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
except ImportError:
2222
pass
2323

24-
_protocols = [ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1]
24+
_protocols = [ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_TLSv1]
2525

2626
class HTTPSConnection(httplib.HTTPSConnection):
2727
"""
@@ -42,6 +42,7 @@ def create_sock():
4242
return sock
4343

4444
success = False
45+
4546
for protocol in _protocols:
4647
try:
4748
sock = create_sock()

0 commit comments

Comments
 (0)