Skip to content

Commit

Permalink
Do not pass query parameter when the value is empty (#7585)
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosZhu authored Aug 23, 2024
1 parent 25386af commit e42848f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/core/tools/tool/api_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def do_http_request(self, url: str, method: str, headers: dict[str, Any],
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
Expand Down

0 comments on commit e42848f

Please sign in to comment.