fix: parameter type handling in API tool and parser (#2574)
This commit is contained in:
parent
07fbeb6cf0
commit
ac96d192a6
2 changed files with 43 additions and 6 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue