From 738073105e643ee4e186d78421006169f4dffa8a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 4 Jun 2012 19:52:51 +0000 Subject: [PATCH] minor updates --- doc/THANKS | 3 +++ lib/request/httpshandler.py | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) 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()