Fixes issue #161

This commit is contained in:
echel0n 2014-04-28 15:21:29 -07:00
parent e0f52e1045
commit a5836afa4f

View file

@ -80,7 +80,7 @@ class HTTPConnection(_HTTPConnection, object):
def _prepare_conn(self, conn):
self.sock = conn
if self._tunnel_host:
if getattr(self, '_tunnel_host', None):
# TODO: Fix tunnel so it doesn't depend on self.sock state.
self._tunnel()