From c301b245a9575e5d42b94c438248dff8582386f1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 18 Mar 2011 13:39:51 +0000 Subject: [PATCH] adding default value for referer in case --referer was not defined and --level>=3 used (so it could be tested with default value) --- lib/core/option.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/core/option.py b/lib/core/option.py index 4cef4a158..119f1e1a6 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -1032,6 +1032,12 @@ def __setHTTPReferer(): conf.httpHeaders.append(("Referer", conf.referer)) + elif conf.level >= 3: + debugMsg = "setting the default HTTP Referer header" + logger.debug(debugMsg) + + conf.httpHeaders.append(("Referer", conf.url)) + def __setHTTPCookies(): """ Set the HTTP Cookie header