diff --git a/lib/request/basic.py b/lib/request/basic.py index 3cdaf3460..196035148 100755 --- a/lib/request/basic.py +++ b/lib/request/basic.py @@ -114,7 +114,7 @@ def forgeHeaders(items=None): elif not kb.testMode: headers[HTTP_HEADER.COOKIE] += "%s %s=%s" % (conf.cookieDel or DEFAULT_COOKIE_DELIMITER, cookie.name, getUnicode(cookie.value)) - if kb.testMode and not conf.csrfToken: + if kb.testMode and not any((conf.csrfToken, conf.safeUrl)): resetCookieJar(conf.cj) return headers