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