Skip to content

Commit

Permalink
Use the selected random User-Agent
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrunnkvist committed Jun 30, 2014
1 parent c2f14e5 commit f0e23c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/core/option.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
"""
Expand Down

0 comments on commit f0e23c9

Please sign in to comment.