mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-14 12:19:39 +08:00
fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
|
||||
- fix: missing request json
|
||||
- fix: override testsuite/testcase config verify
|
||||
- fix: only strip whitespaces and tabs, \n\r are left because they maybe used in changeset
|
||||
|
||||
**Changed**
|
||||
|
||||
|
||||
@@ -362,7 +362,8 @@ def parse_data(
|
||||
# content in string format may contains variables and functions
|
||||
variables_mapping = variables_mapping or {}
|
||||
functions_mapping = functions_mapping or {}
|
||||
raw_data = raw_data.strip()
|
||||
# only strip whitespaces and tabs, \n\r is left because they maybe used in changeset
|
||||
raw_data = raw_data.strip(" \t")
|
||||
return parse_string(raw_data, variables_mapping, functions_mapping)
|
||||
|
||||
elif isinstance(raw_data, (list, set, tuple)):
|
||||
|
||||
Reference in New Issue
Block a user