Just in case for --force-ssl (if url is returned in e.g. refresh toward the target)

This commit is contained in:
stamparm 2013-04-24 12:35:39 +02:00
parent 42a73d8e0b
commit e3a02f56e6

View File

@ -276,6 +276,10 @@ class Connect(object):
pass
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)
if PLACE.GET in conf.parameters and not get:
get = conf.parameters[PLACE.GET]