minor updates

This commit is contained in:
Miroslav Stampar 2012-06-04 19:52:51 +00:00
parent 7b282b1d6c
commit 738073105e
2 changed files with 5 additions and 1 deletions

View File

@ -577,6 +577,9 @@ Johnny Venter <johnny.venter@zoho.com>
Carlos Gabriel Vergara <carlosgabrielvergara@gmail.com>
for suggesting couple of good features
Patrick Webster <patrick@aushack.com>
for suggesting an enhancement
Ed Williams <ed.williams@ngssecure.com>
for suggesting a minor enhancement

View File

@ -21,7 +21,7 @@ try:
except ImportError:
pass
_protocols = [ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_TLSv1]
_protocols = [ssl.PROTOCOL_SSLv23, ssl.PROTOCOL_SSLv3, ssl.PROTOCOL_TLSv1]
class HTTPSConnection(httplib.HTTPSConnection):
"""
@ -42,6 +42,7 @@ class HTTPSConnection(httplib.HTTPSConnection):
return sock
success = False
for protocol in _protocols:
try:
sock = create_sock()