From f0e23c94416682233fb8fe139267ee2e8a53785b Mon Sep 17 00:00:00 2001 From: Conny Brunnkvist Date: Tue, 1 Jul 2014 00:27:14 +0700 Subject: [PATCH] Use the selected random User-Agent --- lib/core/option.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index c4b4ab868..c9fe326fa 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -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(): """