mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 17:39:06 +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…
x
Reference in New Issue
Block a user