Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 63c7001

Browse files
committed
fix for that update (conf.cj) problem mentioned by [email protected]
1 parent effc7dc commit 63c7001

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/core/target.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def initTargetEnv():
223223

224224
if conf.multipleTargets:
225225
if conf.cj:
226-
conf.cj.clear()
226+
conf.cj.clear()
227227

228228
conf.paramDict = {}
229229
conf.parameters = {}

lib/request/connect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def getPage(**kwargs):
157157

158158
requestHeaders = "\n".join(["%s: %s" % (header, value) for header, value in req.header_items()])
159159

160-
if not conf.dropSetCookie:
160+
if not conf.dropSetCookie and conf.cj:
161161
for _, cookie in enumerate(conf.cj):
162162
if not cookieStr:
163163
cookieStr = "Cookie: "

0 commit comments

Comments
 (0)