mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-02-02 20:54:13 +03:00
Fixes #1208
This commit is contained in:
parent
a19bccc84f
commit
99c1cc9937
|
@ -332,7 +332,7 @@ class Connect(object):
|
|||
if HTTP_HEADER.ACCEPT not in headers:
|
||||
headers[HTTP_HEADER.ACCEPT] = HTTP_ACCEPT_HEADER_VALUE
|
||||
|
||||
if HTTP_HEADER.HOST not in headers:
|
||||
if HTTP_HEADER.HOST not in headers or not target:
|
||||
headers[HTTP_HEADER.HOST] = getHostHeader(url)
|
||||
|
||||
if HTTP_HEADER.ACCEPT_ENCODING not in headers:
|
||||
|
|
Loading…
Reference in New Issue
Block a user