Browse Source

update

master
Cailean Finn 6 months ago
parent
commit
7d98ffba62
  1. 2
      server.js

2
server.js

@ -68,7 +68,7 @@ app.post('/api', (req, res) => {
// Verify the secret // Verify the secret
const hmac = crypto.createHmac('sha256', GITEA_SECRET); const hmac = crypto.createHmac('sha256', GITEA_SECRET);
const digest = `sha256=${hmac.update(payload).digest('hex')}`; const digest = `${hmac.update(payload).digest('hex')}`;
// Ensure both buffers have the same length before comparing // Ensure both buffers have the same length before comparing
const bufferSignature = Buffer.from(signature); const bufferSignature = Buffer.from(signature);

Loading…
Cancel
Save