diff --git a/doc/THANKS b/doc/THANKS index 4e4d2451f..7fae471db 100644 --- a/doc/THANKS +++ b/doc/THANKS @@ -577,6 +577,9 @@ Johnny Venter Carlos Gabriel Vergara for suggesting couple of good features +Patrick Webster + for suggesting an enhancement + Ed Williams for suggesting a minor enhancement diff --git a/lib/request/httpshandler.py b/lib/request/httpshandler.py index 9dcc568b5..84be36262 100644 --- a/lib/request/httpshandler.py +++ b/lib/request/httpshandler.py @@ -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()