From 109aabc6f2de0252c72672c29684a37332475eec Mon Sep 17 00:00:00 2001 From: 10YearsDiary <4198070@gmail.com> Date: Sat, 25 May 2024 13:20:06 +0800 Subject: [PATCH] fix: incorrect handling when http header value contain multiple colons. (#4574) --- api/core/workflow/nodes/http_request/http_executor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/core/workflow/nodes/http_request/http_executor.py b/api/core/workflow/nodes/http_request/http_executor.py index 2aa79f51ac..10002216f1 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], ''