mirror of
https://github.com/sqlmapproject/sqlmap
synced 2025-12-06 08:22:15 +01:00
fix parsing single header via --headers parameter
This commit is contained in:
parent
8f9eeb5d54
commit
c503f9ec51
1 changed files with 2 additions and 0 deletions
|
|
@ -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 a new issue