mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2024-11-22 09:36:35 +03:00
Minor adjustment (for headers like 'name:http://asdas')
This commit is contained in:
parent
19b87074c6
commit
eb8e12b7c2
|
@ -1196,8 +1196,8 @@ def _setHTTPExtraHeaders():
|
|||
conf.headers = conf.headers.split("\n") if "\n" in conf.headers else conf.headers.split("\\n")
|
||||
|
||||
for headerValue in conf.headers:
|
||||
if headerValue.count(':') == 1:
|
||||
header, value = (_.lstrip() for _ in headerValue.split(":"))
|
||||
if headerValue.count(':') > 1:
|
||||
header, value = (_.lstrip() for _ in headerValue.split(":", 1))
|
||||
|
||||
if header and value:
|
||||
conf.httpHeaders.append((header, value))
|
||||
|
|
Loading…
Reference in New Issue
Block a user