diff --git a/lib/core/option.py b/lib/core/option.py index bbf3aa2b3..28afa3d77 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -178,7 +178,14 @@ def __feedTargetsDict(reqFile, addedTargetUrls): if key.lower() == "cookie": cookie = value elif key.lower() == "host": - host = value + splitValue = value.split(":") + host = splitValue[0] + + if len(splitValue) > 1: + port = splitValue[1] + + if not scheme and port == "443": + scheme = "https" # Avoid to add a static content length header to # conf.httpHeaders and consider the following lines as