fix: support setting variables in url

This commit is contained in:
zhuxiaobing 2024-11-14 12:56:54 +08:00
parent 317ae9233e
commit 247e1cdcf3

View File

@ -107,6 +107,7 @@ class HttpRequestNode(BaseNode[HttpRequestNodeData]):
node_data: HttpRequestNodeData, node_data: HttpRequestNodeData,
) -> Mapping[str, Sequence[str]]: ) -> Mapping[str, Sequence[str]]:
selectors: list[VariableSelector] = [] 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.headers)
selectors += variable_template_parser.extract_selectors_from_template(node_data.params) selectors += variable_template_parser.extract_selectors_from_template(node_data.params)
if node_data.body: if node_data.body: