mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 01:26:42 +03:00
fix for a bug regarding --cookie and --crawl
This commit is contained in:
parent
2094c715db
commit
594579bef4
|
@ -583,6 +583,9 @@ Zhen Zhou <zhouzhenster@gmail.com>
|
|||
abc abc <biedimc@gmx.net>
|
||||
for reporting a minor bug
|
||||
|
||||
Abuse 007 <abuse007@gmail.com>
|
||||
for reporting a bug
|
||||
|
||||
Alex m3zero@gmail.com
|
||||
for reporting a minor bug
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue
Block a user