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: