From 190cf4b14d4e0fc87a0374c0818a440811db114b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 31 Oct 2017 09:51:07 +0100 Subject: [PATCH] Minor patch (missing scheme case) --- lib/core/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/common.py b/lib/core/common.py index ad4f84779..3a8025512 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1411,7 +1411,7 @@ def parseTargetUrl(): hostnamePort = urlSplit.netloc.split(":") if not re.search("\[.+\]", urlSplit.netloc) else filter(None, (re.search("\[.+\]", urlSplit.netloc).group(0), re.search("\](:(?P\d+))?", urlSplit.netloc).group("port"))) - conf.scheme = urlSplit.scheme.strip().lower() if not conf.forceSSL else "https" + conf.scheme = (urlSplit.scheme.strip().lower() or "http") if not conf.forceSSL else "https" conf.path = urlSplit.path.strip() conf.hostname = hostnamePort[0].strip()