Browse code

Properly passing parsed hostname and port

Yossi Abraham authored on 2017/05/09 23:27:36
Showing 1 changed files
... ...
@@ -200,7 +200,7 @@ class http_connection(object):
200 200
 
201 201
         if not cfg.proxy_host:
202 202
             if ssl:
203
-                self.c = http_connection._https_connection(hostname)
203
+                self.c = http_connection._https_connection(self.hostname, self.port)
204 204
                 debug(u'non-proxied HTTPSConnection(%s, %s)', self.hostname, self.port)
205 205
             else:
206 206
                 self.c = httplib.HTTPConnection(self.hostname, self.port)