fix: parameter type handling in API tool and parser (#2574)

This commit is contained in:
Yeuoly
2024-02-27 15:59:11 +08:00
committed by GitHub
parent 07fbeb6cf0
commit ac96d192a6
2 changed files with 43 additions and 6 deletions

View File

@@ -200,7 +200,7 @@ class ApiTool(Tool):
# replace path parameters
for name, value in path_params.items():
url = url.replace(f'{{{name}}}', value)
url = url.replace(f'{{{name}}}', f'{value}')
# parse http body data if needed, for GET/HEAD/OPTIONS/TRACE, the body is ignored
if 'Content-Type' in headers: