mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Dirty implementation for #4571
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user