Trivial patch

This commit is contained in:
Miroslav Stampar
2019-11-11 12:43:45 +01:00
parent 5f3b397882
commit 39ca71619c
3 changed files with 5 additions and 2 deletions

View File

@@ -215,7 +215,7 @@ def crawl(target):
if target[1] in (HTTPMETHOD.GET, None):
match = re.search(r"/[^/?]*\?.*\Z", target[0])
if match:
key = re.sub(r"=[^=&]*", "=", match.group(0))
key = re.sub(r"=[^=&]*", "=", match.group(0)).strip('&')
if key not in seen:
results.add(target)
seen.add(key)