From 55d2417906339092293a94f730ab8bab45c02bb5 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Tue, 19 Mar 2024 18:12:50 +0800 Subject: [PATCH] fix: invalid http header --- api/core/workflow/nodes/http_request/http_executor.py | 2 +- 1 file changed, 1 insertion(+), 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 6474a6259e..0b11454d3d 100644 --- a/api/core/workflow/nodes/http_request/http_executor.py +++ b/api/core/workflow/nodes/http_request/http_executor.py @@ -213,7 +213,7 @@ class HttpExecutor: else: raise ValueError(f'Invalid headers {kv}') - self.headers[k] = v + self.headers[k.strip()] = v.strip() # extract all template in body if node_data.body: