From 05b9951a8bbc8b28a734a2bcf9130cdc9e969258 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 21 Oct 2011 09:19:31 +0000 Subject: [PATCH] minor beautification --- lib/controller/controller.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/controller/controller.py b/lib/controller/controller.py index 71d17b5d6..b61a2cfe1 100644 --- a/lib/controller/controller.py +++ b/lib/controller/controller.py @@ -334,15 +334,9 @@ def start(): checkNullConnection() if not conf.dropSetCookie and conf.cj: - for _, cookie in enumerate(conf.cj): - cookie = getUnicode(cookie) - index = cookie.index(" for ") - - cookieStr += "%s;" % cookie[8:index] + cookieStr = ";".join("%s=%s" % (getUnicode(cookie.name), getUnicode(cookie.value)) for _, cookie in enumerate(conf.cj)) if cookieStr: - cookieStr = cookieStr[:-1] - if PLACE.COOKIE in conf.parameters: message = "you provided an HTTP Cookie header value. " message += "The target url provided its own Cookie within "