We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a787b0 commit af9fed2Copy full SHA for af9fed2
ndg/httpsclient/https.py
@@ -78,9 +78,10 @@ def connect(self):
78
79
sock = socket.create_connection((self.host, self.port), self.timeout)
80
81
- # Tunnel if using a proxy
82
- self.sock = sock
83
- self._tunnel()
+ # Tunnel if using a proxy - ONLY available for Python 2.6.2 and above
+ if getattr(self, '_tunnel_host', None):
+ self.sock = sock
84
+ self._tunnel()
85
86
self.sock = SSLSocket(ssl_context, sock)
87
0 commit comments