Another update for an Issue #79

This commit is contained in:
Miroslav Stampar 2012-08-31 12:46:38 +02:00
parent b916db34a4
commit 33980adaef
2 changed files with 1 additions and 3 deletions

View File

@ -267,7 +267,7 @@ def __feedTargetsDict(reqFile, addedTargetUrls):
# POST parameters # POST parameters
elif data is not None and params: elif data is not None and params:
data += line data += "%s%s" % ("\n" if data else "", line)
# GET parameters # GET parameters
elif "?" in line and "=" in line and ": " not in line: elif "?" in line and "=" in line and ": " not in line:

View File

@ -81,8 +81,6 @@ def __setRequestParams():
if hasattr(conf.data, UNENCODED_ORIGINAL_VALUE): if hasattr(conf.data, UNENCODED_ORIGINAL_VALUE):
original = getattr(conf.data, UNENCODED_ORIGINAL_VALUE) original = getattr(conf.data, UNENCODED_ORIGINAL_VALUE)
setattr(conf.data, UNENCODED_ORIGINAL_VALUE, original) 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 place = PLACE.SOAP if re.match(SOAP_REGEX, conf.data, re.I | re.M) else PLACE.POST