1
0
Fork 0
forked from svrjs/svrjs

Replace var's with const's in OCSP stapling handler

This commit is contained in:
Dorian Niemiec 2024-08-25 18:02:02 +02:00
parent 9b03abc646
commit bdc11fa3dc

View file

@ -831,8 +831,8 @@ if (process.serverConfig.secure) {
ocsp.getOCSPURI(cert, function (err, uri) { ocsp.getOCSPURI(cert, function (err, uri) {
if (err) return callback(err); if (err) return callback(err);
var req = ocsp.request.generate(cert, issuer); const req = ocsp.request.generate(cert, issuer);
var options = { const options = {
url: uri, url: uri,
ocsp: req.data ocsp: req.data
}; };