minor update related to the last commit

This commit is contained in:
Miroslav Stampar 2011-04-14 10:12:07 +00:00
parent 1c5427baf8
commit 930262f573

View File

@ -277,9 +277,10 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
getPostReq &= re.search(conf.scope, host) is not None
if getPostReq and (params or cookie):
if not port and scheme == "https":
port = "443"
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