diff options
Diffstat (limited to 'abs/core/func/func_ssl_patch')
-rw-r--r-- | abs/core/func/func_ssl_patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/abs/core/func/func_ssl_patch b/abs/core/func/func_ssl_patch new file mode 100644 index 0000000..cccfe4a --- /dev/null +++ b/abs/core/func/func_ssl_patch @@ -0,0 +1,12 @@ +--- a/func/overlord/sslclient.py ++++ b/func/overlord/sslclient.py +@@ -23,7 +23,11 @@ class SSL_Transport(xmlrpclib.Transport): + # Yay for Python 2.2 + pass + _host, _port = urllib.splitport(host) +- return SSLCommon.HTTPS(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout) ++ if hasattr(xmlrpclib.Transport, 'single_request'): ++ cnx_class = SSLCommon.HTTPSConnection ++ else: ++ cnx_class = SSLCommon.HTTPS ++ return cnx_class(_host, int(_port), ssl_context=self.ssl_ctx, timeout=self._timeout) |