From 33980adaefcbd4d095b2d7b1aa1cb4aa03eebe49 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 31 Aug 2012 12:46:38 +0200 Subject: [PATCH] Another update for an Issue #79 --- lib/core/option.py | 2 +- lib/core/target.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/core/option.py b/lib/core/option.py index d639f709d..37928b909 100644 --- a/lib/core/option.py +++ b/lib/core/option.py @@ -267,7 +267,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls): # POST parameters elif data is not None and params: - data += line + data += "%s%s" % ("\n" if data else "", line) # GET parameters elif "?" in line and "=" in line and ": " not in line: diff --git a/lib/core/target.py b/lib/core/target.py index e7cee357d..954d8b02e 100644 --- a/lib/core/target.py +++ b/lib/core/target.py @@ -81,8 +81,6 @@ def __setRequestParams(): if hasattr(conf.data, UNENCODED_ORIGINAL_VALUE): original = getattr(conf.data, UNENCODED_ORIGINAL_VALUE) setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original) - else: - conf.data = conf.data.replace("\n", " ") place = PLACE.SOAP if re.match(SOAP_REGEX, conf.data, re.I | re.M) else PLACE.POST