Compare commits

...

2 Commits

Author SHA1 Message Date
朱晓兵
4463c9c75c
Merge 247e1cdcf3 into 4b2abf8ac2 2024-11-15 10:41:00 +08:00
zhuxiaobing
247e1cdcf3 fix: support setting variables in url 2024-11-14 12:56:54 +08:00

View File

@ -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: