Browse code

Merge pull request #870 from yossi-stratoscale/issue-869

Properly passing parsed hostname and port

Florent Viard authored on 2017/05/31 02:12:54
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)