Use the selected random User-Agent

This commit is contained in:
Conny Brunnkvist 2014-07-01 00:27:14 +07:00
parent c2f14e57e7
commit f0e23c9441

View File

@ -1338,6 +1338,8 @@ def _setHTTPUserAgent():
infoMsg = "fetched random HTTP User-Agent header from "
infoMsg += "file '%s': %s" % (paths.USER_AGENTS, userAgent)
logger.info(infoMsg)
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
def _setHTTPReferer():
"""