diff --git a/src/content/docs/stream/manage-video-library/using-webhooks.mdx b/src/content/docs/stream/manage-video-library/using-webhooks.mdx index e2286c05d08487..1a0269661121eb 100644 --- a/src/content/docs/stream/manage-video-library/using-webhooks.mdx +++ b/src/content/docs/stream/manage-video-library/using-webhooks.mdx @@ -247,7 +247,7 @@ func main() { const getUtf8Bytes = str => new Uint8Array( - [...unescape(encodeURIComponent(str))].map(c => c.charCodeAt(0)) + [...decodeURIComponent(encodeURIComponent(str))].map(c => c.charCodeAt(0)) ); const keyBytes = getUtf8Bytes(key);