refac/fix: support delete method for openapi tool servers
This commit is contained in:
1 parent
515e136502
commit
8039cc40f7
2 files changed
+5
-2
No files matched your search
@@ -494,7 +494,10 @@ export const executeToolServer = async (
|
||||
headers
|
||||
};
|
||||
|
||||
if (['post', 'put', 'patch'].includes(httpMethod.toLowerCase()) && operation.requestBody) {
|
||||
if (
|
||||
['post', 'put', 'patch', 'delete'].includes(httpMethod.toLowerCase()) &&
|
||||
operation.requestBody
|
||||
) {
|
||||
requestOptions.body = JSON.stringify(bodyParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user