diff --git a/lib/core/option.py b/lib/core/option.py index b72a9d3c6..156a0362c 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -278,6 +278,8 @@ def __feedTargetsDict(reqFile, addedTargetUrls): if getPostReq and (params or cookie): if not url.startswith("http"): + if not port and scheme == "https": + port = "443" url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url) scheme = None port = None