mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-07 05:01:30 +00:00
minor fix (crashing if no : in value)
This commit is contained in:
@@ -1076,6 +1076,7 @@ def __setHTTPExtraHeaders():
|
|||||||
conf.headers = conf.headers.split("\n")
|
conf.headers = conf.headers.split("\n")
|
||||||
|
|
||||||
for headerValue in conf.headers:
|
for headerValue in conf.headers:
|
||||||
|
if ":" in headerValue:
|
||||||
header, value = headerValue.split(":")
|
header, value = headerValue.split(":")
|
||||||
|
|
||||||
if header and value:
|
if header and value:
|
||||||
|
|||||||
Reference in New Issue
Block a user