We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 06e1971 commit 40cb42dCopy full SHA for 40cb42d
workers/webhooks.js
@@ -387,6 +387,9 @@ const notifyWorker = new Worker(
387
}
388
let body = Buffer.from(JSON.stringify(webhookPayload));
389
390
+ // Explicitly set Content-Length to prevent undici mismatch errors
391
+ headers['Content-Length'] = body.length.toString();
392
+
393
const serviceSecret = await getServiceSecret();
394
let hmac = createHmac('sha256', serviceSecret);
395
hmac.update(body);
0 commit comments