Skip to content

🎥 Make videos programmatically with React

pass content-length when invoking webhook

Jonny Burgereb81308ee07a
diff --git a/packages/lambda/src/shared/invoke-webhook.ts b/packages/lambda/src/shared/invoke-webhook.ts
index f8d8870f97..cd69b35639 100644
--- a/packages/lambda/src/shared/invoke-webhook.ts
+++ b/packages/lambda/src/shared/invoke-webhook.ts
@@ -95,6 +95,7 @@ export function invokeWebhook({
method: 'POST',
headers: {
'Content-Type': 'application/json',
+ 'Content-Length': jsonPayload.length,
'X-Remotion-Mode': 'production',
'X-Remotion-Signature': calculateSignature(jsonPayload, secret),
'X-Remotion-Status': payload.type,