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: incorrect handling when http header value contain multiple colons. (#4574)

10YearsDiary109aabc6f2de
diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py
index 2aa79f51ace..10002216f1f 100644
--- a/api/core/workflow/nodes/http_request/http_executor.py
+++ b/api/core/workflow/nodes/http_request/http_executor.py
@@ -160,7 +160,9 @@ class HttpExecutor:
continue
kv = kv.split(':', maxsplit=maxsplit)
- if len(kv) == 2:
+ if len(kv) >= 3:
+ k, v = kv[0], ":".join(kv[1:])
+ elif len(kv) == 2:
k, v = kv
elif len(kv) == 1:
k, v = kv[0], ''