mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor patch for #1260
This commit is contained in:
parent
8d7e915af7
commit
04c1d439a7
|
@ -66,6 +66,12 @@ def forgeHeaders(items=None):
|
|||
headers = OrderedDict()
|
||||
for key, value in _.items():
|
||||
success = False
|
||||
|
||||
for _ in headers:
|
||||
if _.upper() == key.upper():
|
||||
del headers[_]
|
||||
break
|
||||
|
||||
if key.upper() not in (_.upper() for _ in getPublicTypeMembers(HTTP_HEADER, True)):
|
||||
try:
|
||||
headers[_str(key)] = value # dirty hack for http://bugs.python.org/issue12455
|
||||
|
|
Loading…
Reference in New Issue
Block a user