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

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

No files matched your search

+1 -1
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: