mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 03:35:51 +08:00
fix: solving http-request-tool bugs in workflow (#6685)
This commit is contained in:
parent
700d37be8d
commit
ac60182c91
@ -337,7 +337,7 @@ class HttpExecutor:
|
||||
if variable is None:
|
||||
raise ValueError(f'Variable {variable_selector.variable} not found')
|
||||
if escape_quotes and isinstance(variable, str):
|
||||
value = variable.replace('"', '\\"')
|
||||
value = variable.replace('"', '\\"').replace('\n', '\\n')
|
||||
else:
|
||||
value = variable
|
||||
variable_value_mapping[variable_selector.variable] = value
|
||||
|
Loading…
x
Reference in New Issue
Block a user