Cleaning up cases with Set-Cookie (conf.cj is handling it automatically; also, default redirector needed to be patched)

This commit is contained in:
stamparm
2013-02-28 13:51:08 +01:00
parent aa59266804
commit 9ef79df23d
3 changed files with 3 additions and 10 deletions

View File

@@ -82,12 +82,6 @@ def forgeHeaders(items=None):
if kb.testMode:
resetCookieJar(conf.cj)
if kb.redirectSetCookie and not conf.dropSetCookie:
if HTTPHEADER.COOKIE in headers:
headers[HTTPHEADER.COOKIE] += "%s %s" % (DEFAULT_COOKIE_DELIMITER, kb.redirectSetCookie)
else:
headers[HTTPHEADER.COOKIE] = kb.redirectSetCookie
return headers
def parseResponse(page, headers):