mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-25 10:01:30 -04:00
13 lines
300 B
JavaScript
13 lines
300 B
JavaScript
module.exports = getMissingHeaders
|
|
|
|
const WEBHOOK_HEADERS = [
|
|
'x-github-event',
|
|
'x-hub-signature',
|
|
'x-github-delivery'
|
|
]
|
|
|
|
// https://developer.github.com/webhooks/#delivery-headers
|
|
function getMissingHeaders (request) {
|
|
return WEBHOOK_HEADERS.filter(header => !(header in request.headers))
|
|
}
|