Skip to content

Commit

Permalink
fix: POST 500 error on dingtalk bot (#3655)
Browse files Browse the repository at this point in the history
  • Loading branch information
I-Info authored Jan 24, 2025
1 parent 60c72d0 commit 5ce8899
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,10 @@ async function handler(
// send to pro
const { token } = req.query;
const result = await POST<any>(`support/outLink/dingtalk/${token}`, req.body, {
headers: req.headers as any
headers: {
timestamp: (req.headers.timestamp as string) ?? '',
sign: (req.headers.sign as string) ?? ''
}
});

return result;
Expand Down

0 comments on commit 5ce8899

Please sign in to comment.