Skip to content

Commit

Permalink
docs(README): update Smee usage documentation (#901)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
monsonjeremy committed Sep 20, 2023
1 parent 37e79b3 commit 2bfcb7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
Expand Down

0 comments on commit 2bfcb7a

Please sign in to comment.