mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-07-22 05:59:46 +03:00
fix parsing single header via --headers parameter
This commit is contained in:
parent
8f9eeb5d54
commit
c503f9ec51
|
@ -1410,6 +1410,8 @@ def _setHTTPExtraHeaders():
|
|||
conf.headers = conf.headers.replace("\r\n", "\n").split("\n")
|
||||
elif "\\n" in conf.headers:
|
||||
conf.headers = conf.headers.replace("\\r\\n", "\\n").split("\\n")
|
||||
else:
|
||||
headers = [headers]
|
||||
|
||||
for headerValue in conf.headers:
|
||||
if not headerValue.strip():
|
||||
|
|
Loading…
Reference in New Issue
Block a user