##// END OF EJS Templates
url: let host port take precedence when connecting to HTTPS...
Henrik Stuart -
r8848:89b71acd default
parent child Browse files
Show More
@@ -438,6 +438,12 b' if has_https:'
438 keyfile = self.auth['key']
438 keyfile = self.auth['key']
439 certfile = self.auth['cert']
439 certfile = self.auth['cert']
440
440
441 # let host port take precedence
442 if ':' in host and '[' not in host or ']:' in host:
443 host, port = host.rsplit(':', 1)
444 if '[' in host:
445 host = host[1:-1]
446
441 return httpsconnection(host, port, keyfile, certfile, *args, **kwargs)
447 return httpsconnection(host, port, keyfile, certfile, *args, **kwargs)
442
448
443 # In python < 2.5 AbstractDigestAuthHandler raises a ValueError if
449 # In python < 2.5 AbstractDigestAuthHandler raises a ValueError if
General Comments 0
You need to be logged in to leave comments. Login now