mirror of
https://gitee.com/dify_ai/dify.git
synced 2024-12-02 19:27:48 +08:00
Do not pass query parameter when the value is empty (#7585)
This commit is contained in:
parent
25386af41a
commit
e42848f4b7
@ -144,7 +144,7 @@ class ApiTool(Tool):
|
||||
path_params[parameter['name']] = value
|
||||
|
||||
elif parameter['in'] == 'query':
|
||||
params[parameter['name']] = value
|
||||
if value !='': params[parameter['name']] = value
|
||||
|
||||
elif parameter['in'] == 'cookie':
|
||||
cookies[parameter['name']] = value
|
||||
|
Loading…
Reference in New Issue
Block a user