From 63c70018ca3ccf228c9b35c8ef05d1245870c06b Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 9 Apr 2010 10:16:15 +0000 Subject: [PATCH] fix for that update (conf.cj) problem mentioned by shiftzwei@gmail.com --- lib/core/target.py | 2 +- lib/request/connect.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/core/target.py b/lib/core/target.py index 43f419079..6fffd684c 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -223,7 +223,7 @@ def initTargetEnv(): if conf.multipleTargets: if conf.cj: - conf.cj.clear() + conf.cj.clear() conf.paramDict = {} conf.parameters = {} diff --git a/lib/request/connect.py b/lib/request/connect.py index 93d7aa534..5ea98e452 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -157,7 +157,7 @@ class Connect: requestHeaders = "\n".join(["%s: %s" % (header, value) for header, value in req.header_items()]) - if not conf.dropSetCookie: + if not conf.dropSetCookie and conf.cj: for _, cookie in enumerate(conf.cj): if not cookieStr: cookieStr = "Cookie: "