From 4441e11f688d714334f13c02ab3b3967fd71c6b8 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Mon, 24 Jan 2011 11:26:51 +0000 Subject: [PATCH] fix for case -r with no params and cookie available --- lib/core/option.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/option.py b/lib/core/option.py index 20bc89fa2..f0bf084ff 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -258,7 +258,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls): if conf.scope: getPostReq &= re.search(conf.scope, host) is not None - if getPostReq and params: + if getPostReq and (params or cookie): if not url.startswith("http"): url = "%s://%s:%s%s" % (scheme or "http", host, port or "80", url) scheme = None