fix for case -r with no params and cookie available

This commit is contained in:
Miroslav Stampar 2011-01-24 11:26:51 +00:00
parent 47fa600c04
commit 4441e11f68

View File

@ -258,7 +258,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
if conf.scope:
getPostReq &= re.search(conf.scope, host) is not None
if getPostReq and params:
if getPostReq and (params or cookie):
if not url.startswith("http"):
url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url)
scheme = None