Skip to content

Commit f66c772

Browse files
committed
chore: update docs
1 parent 5a5c804 commit f66c772

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

docs/guides/api/webhooks.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ Each webhook request includes:
4747
1. HTTP Headers:
4848

4949
```
50-
Content-Type: application/json
51-
X-Latitude-Signature: <signature>
52-
X-Latitude-Event: commitPublished
50+
X-Webhook-Signature: <signature>
5351
```
5452

5553
2. Request Body:
@@ -101,7 +99,7 @@ function verifyWebhookSignature(payload, signature, secret) {
10199

102100
// In your webhook handler
103101
app.post('/webhook', (req, res) => {
104-
const signature = req.headers['x-latitude-signature']
102+
const signature = req.headers['x-webhook-signature']
105103
const payload = JSON.stringify(req.body)
106104

107105
if (!verifyWebhookSignature(payload, signature, WEBHOOK_SECRET)) {

0 commit comments

Comments
 (0)