Skip to content

Commit

Permalink
fix: signature generation for Delete method with payload (#2255)
Browse files Browse the repository at this point in the history
  • Loading branch information
mohsinayoob authored and osamasayed committed Dec 17, 2024
1 parent dc80417 commit 43e5100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/auth/signature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const generateSignature = (
let params = {};

try {
const methodsWithBody = ['POST', 'PUT', 'PATCH'];
const methodsWithBody = ['POST', 'PUT', 'PATCH', 'DELETE'];
if (methodsWithBody.includes(req.method)) {
params = req.body;
}
Expand Down

0 comments on commit 43e5100

Please sign in to comment.