mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 12:41:30 +00:00
fix for a bug regarding --cookie and --crawl
This commit is contained in:
@@ -44,13 +44,15 @@ def forgeHeaders(items=None):
|
||||
the HTTP requests
|
||||
"""
|
||||
|
||||
items = items or {}
|
||||
|
||||
for _ in items.keys():
|
||||
if items[_] is None:
|
||||
del items[_]
|
||||
|
||||
headers = dict(conf.httpHeaders)
|
||||
headers.update(items or {})
|
||||
|
||||
for _ in headers.keys():
|
||||
if headers[_] is None:
|
||||
del headers[_]
|
||||
|
||||
if conf.cj:
|
||||
if HTTPHEADER.COOKIE in headers:
|
||||
for cookie in conf.cj:
|
||||
|
||||
Reference in New Issue
Block a user