adding default value for referer in case --referer was not defined and --level>=3 used (so it could be tested with default value)

This commit is contained in:
Miroslav Stampar 2011-03-18 13:39:51 +00:00
parent b53c9a2599
commit c301b245a9

View File

@ -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