Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: solving http-request-tool bugs in workflow (#6685)

灰灰ac60182c91b4
diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py
index 3c24c0a018d..db18bd00b2d 100644
--- a/api/core/workflow/nodes/http_request/http_executor.py
+++ b/api/core/workflow/nodes/http_request/http_executor.py
@@ -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