Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
server.ext('onRequest', function (req, reply) {
req.headers['x-laabr-cid'] = req.headers[field] || req.id
return correlator.withId(req.headers['x-laabr-cid'], function () {
reply.continue()
})
})
}