From 247e1cdcf3a3b09899b5dd5d0aac1853e5aee56e Mon Sep 17 00:00:00 2001 From: zhuxiaobing Date: Thu, 14 Nov 2024 12:56:54 +0800 Subject: [PATCH] fix: support setting variables in url --- api/core/workflow/nodes/http_request/node.py | 1 + 1 file changed, 1 insertion(+) diff --git a/api/core/workflow/nodes/http_request/node.py b/api/core/workflow/nodes/http_request/node.py index 5b399bed63..b0c6e58244 100644 --- a/api/core/workflow/nodes/http_request/node.py +++ b/api/core/workflow/nodes/http_request/node.py @@ -107,6 +107,7 @@ class HttpRequestNode(BaseNode[HttpRequestNodeData]): node_data: HttpRequestNodeData, ) -> Mapping[str, Sequence[str]]: selectors: list[VariableSelector] = [] + selectors += variable_template_parser.extract_selectors_from_template(node_data.url) selectors += variable_template_parser.extract_selectors_from_template(node_data.headers) selectors += variable_template_parser.extract_selectors_from_template(node_data.params) if node_data.body: