mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-04-23 14:19:42 +08:00
fix: support setting variables in url (#10676)
This commit is contained in:
parent
f9c2aa7689
commit
e80f41a701
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user