This commit is contained in:
Miroslav Stampar
2017-04-14 12:47:24 +02:00
parent 6b48f6ec26
commit a702dafd03
4 changed files with 7 additions and 7 deletions

View File

@@ -310,8 +310,8 @@ class Connect(object):
elif target:
if conf.forceSSL and urlparse.urlparse(url).scheme != "https":
url = re.sub("\Ahttp:", "https:", url, re.I)
url = re.sub(":80/", ":443/", url, re.I)
url = re.sub("(?i)\Ahttp:", "https:", url)
url = re.sub("(?i):80/", ":443/", url)
if PLACE.GET in conf.parameters and not get:
get = conf.parameters[PLACE.GET]