From c31e23e514ccbc5a727c3453eebc27d729d914f1 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 6 Nov 2015 11:19:55 +0100 Subject: [PATCH] Patch for an Issue #1516 --- lib/request/basic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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