minor fix (-r required Content-Length which is a part of Burp log and as we share the parsing logic this was a headache for -r)

This commit is contained in:
Miroslav Stampar 2011-03-19 17:37:26 +00:00
parent 139448eeb9
commit 7c2b3afafb

View File

@ -215,9 +215,11 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
for line in lines:
if len(line) == 0 or line == "\n":
continue
if method == HTTPMETHOD.POST:
data = ""
params = True
if line.startswith("GET ") or line.startswith("POST "):
elif (line.startswith("GET ") or line.startswith("POST ")) and " HTTP/" in line:
if line.startswith("GET "):
index = 4
else: