Minor patch for combo -r and --method

This commit is contained in:
Miroslav Stampar 2016-02-18 11:13:51 +01:00
parent 82abf1f742
commit d6bac363af

View File

@ -332,7 +332,7 @@ def _feedTargetsDict(reqFile, addedTargetUrls):
if not(conf.scope and not re.search(conf.scope, url, re.I)):
if not kb.targets or url not in addedTargetUrls:
kb.targets.add((url, method, data, cookie, tuple(headers)))
kb.targets.add((url, conf.method or method, data, cookie, tuple(headers)))
addedTargetUrls.add(url)
checkFile(reqFile)