From 2bfcb7a8fac1795afd1977911fd686bdb3ce6ee3 Mon Sep 17 00:00:00 2001 From: Jeremy Monson Date: Wed, 20 Sep 2023 09:23:33 -0700 Subject: [PATCH] docs(README): update Smee usage documentation (#901) GH-889: Update Smee Documentation The current code in Smee documentation does not work as is, we need to stringify the body in order to properly do the signature verification process. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8c3a69bb..4f5358f0 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ source.onmessage = (event) => { id: webhookEvent["x-request-id"], name: webhookEvent["x-github-event"], signature: webhookEvent["x-hub-signature"], - payload: webhookEvent.body, + payload: JSON.stringify(webhookEvent.body), }) .catch(console.error); };