mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-09-01 00:40:02 +00:00
Minor adjustment (for headers like 'name:http://asdas')
This commit is contained in:
parent
19b87074c6
commit
eb8e12b7c2
1 changed files with 2 additions and 2 deletions
|
|
@ -1196,8 +1196,8 @@ def _setHTTPExtraHeaders():
|
||||||
conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n")
|
conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n")
|
||||||
|
|
||||||
for headerValue in conf.headers:
|
for headerValue in conf.headers:
|
||||||
if headerValue.count(':') == 1:
|
if headerValue.count(':') > 1:
|
||||||
header, value = (_.lstrip() for _ in headerValue.split(":"))
|
header, value = (_.lstrip() for _ in headerValue.split(":", 1))
|
||||||
|
|
||||||
if header and value:
|
if header and value:
|
||||||
conf.httpHeaders.append((header, value))
|
conf.httpHeaders.append((header, value))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue