mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-11 19:13:12 +00:00
Dirty implementation for #4571
This commit is contained in:
parent
b902cca791
commit
f87aa83e9b
3 changed files with 7 additions and 1 deletions
|
|
@ -488,6 +488,9 @@ class Connect(object):
|
|||
header, value = line.split(':', 1)
|
||||
headers[header] = value
|
||||
|
||||
if conf.localhost:
|
||||
headers[HTTP_HEADER.HOST] = "localhost"
|
||||
|
||||
for key, value in list(headers.items()):
|
||||
del headers[key]
|
||||
if isinstance(value, six.string_types):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue