mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Fixes #1196
This commit is contained in:
@@ -1400,6 +1400,17 @@ def _setHTTPReferer():
|
||||
|
||||
conf.httpHeaders.append((HTTP_HEADER.REFERER, conf.referer))
|
||||
|
||||
def _setHTTPHost():
|
||||
"""
|
||||
Set the HTTP Host
|
||||
"""
|
||||
|
||||
if conf.host:
|
||||
debugMsg = "setting the HTTP Host header"
|
||||
logger.debug(debugMsg)
|
||||
|
||||
conf.httpHeaders.append((HTTP_HEADER.HOST, conf.host))
|
||||
|
||||
def _setHTTPCookies():
|
||||
"""
|
||||
Set the HTTP Cookie header
|
||||
@@ -2381,6 +2392,7 @@ def init():
|
||||
_setHTTPExtraHeaders()
|
||||
_setHTTPCookies()
|
||||
_setHTTPReferer()
|
||||
_setHTTPHost()
|
||||
_setHTTPUserAgent()
|
||||
_setHTTPAuthentication()
|
||||
_setHTTPProxy()
|
||||
|
||||
Reference in New Issue
Block a user