fix: support setting variables in url (#10676)

pull/11225/head
朱晓兵 1 year ago committed by GitHub
parent f9c2aa7689
commit e80f41a701
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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

Loading…
Cancel
Save