From b6108ee4de28c2f23632b8263ed3e52c1513e9a8 Mon Sep 17 00:00:00 2001 From: gioelecerati Date: Sun, 14 Apr 2024 23:34:48 +0200 Subject: [PATCH] api: webhook: fix header log --- packages/api/src/controllers/access-control.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/api/src/controllers/access-control.ts b/packages/api/src/controllers/access-control.ts index 56b53a4a97..4679936bb0 100644 --- a/packages/api/src/controllers/access-control.ts +++ b/packages/api/src/controllers/access-control.ts @@ -125,9 +125,9 @@ async function fireGateWebhook( process.hrtime(startTime)[1] / 1e6 }ms accessKey=${payload.accessKey} playbackId=${ content.playbackId - } webhook=${webhook.id} referer=${params.headers["Referer"]} origin=${ - params.headers["Origin"] - }` + } webhook=${webhook.id} referer=${ + payload.webhookPayload.headers["Referer"] + } origin=${payload.webhookPayload.headers["Origin"]}` ); } else { console.log(