From c4df6f3a22a4a0d68d5b0778dc849a9a01e44248 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Tue, 13 Oct 2015 13:31:28 +0200 Subject: [PATCH] Fixes #1465 --- lib/request/connect.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/request/connect.py b/lib/request/connect.py index b5f222882..4cb24888e 100644 --- a/lib/request/connect.py +++ b/lib/request/connect.py @@ -439,6 +439,11 @@ class Connect(object): logger.log(CUSTOM_LOGGING.TRAFFIC_OUT, requestMsg) + if conf.cj: + for cookie in conf.cj: + if cookie.value is None: + cookie.value = "" + conn = urllib2.urlopen(req) if not kb.authHeader and getRequestHeader(req, HTTP_HEADER.AUTHORIZATION) and (conf.authType or "").lower() == AUTH_TYPE.BASIC.lower():