Do not pass query parameter when the value is empty (#7585)

This commit is contained in:
Amos 2024-08-23 11:50:38 +01:00 committed by GitHub
parent 25386af41a
commit e42848f4b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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