Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 190cf4b

Browse files
committed
Minor patch (missing scheme case)
1 parent 9df514c commit 190cf4b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/core/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1411,7 +1411,7 @@ def parseTargetUrl():
14111411

14121412
hostnamePort = urlSplit.netloc.split(":") if not re.search("\[.+\]", urlSplit.netloc) else filter(None, (re.search("\[.+\]", urlSplit.netloc).group(0), re.search("\](:(?P<port>\d+))?", urlSplit.netloc).group("port")))
14131413

1414-
conf.scheme = urlSplit.scheme.strip().lower() if not conf.forceSSL else "https"
1414+
conf.scheme = (urlSplit.scheme.strip().lower() or "http") if not conf.forceSSL else "https"
14151415
conf.path = urlSplit.path.strip()
14161416
conf.hostname = hostnamePort[0].strip()
14171417

0 commit comments

Comments
 (0)