mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-12-06 20:51:31 +00:00
Minor style update
This commit is contained in:
@@ -1371,7 +1371,7 @@ def _setHTTPUserAgent():
|
|||||||
userAgent = random.sample(kb.userAgents or [_defaultHTTPUserAgent()], 1)[0]
|
userAgent = random.sample(kb.userAgents or [_defaultHTTPUserAgent()], 1)[0]
|
||||||
|
|
||||||
infoMsg = "fetched random HTTP User-Agent header from "
|
infoMsg = "fetched random HTTP User-Agent header from "
|
||||||
infoMsg += "file '%s': %s" % (paths.USER_AGENTS, userAgent)
|
infoMsg += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent)
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
|
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
|
||||||
|
|||||||
Reference in New Issue
Block a user