From bdc11fa3dcec1090d8d58514d3a66ee492ed2097 Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sun, 25 Aug 2024 18:02:02 +0200 Subject: [PATCH] Replace var's with const's in OCSP stapling handler --- src/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.js b/src/index.js index 89b5a94..4be63b1 100644 --- a/src/index.js +++ b/src/index.js @@ -831,8 +831,8 @@ if (process.serverConfig.secure) { ocsp.getOCSPURI(cert, function (err, uri) { if (err) return callback(err); - var req = ocsp.request.generate(cert, issuer); - var options = { + const req = ocsp.request.generate(cert, issuer); + const options = { url: uri, ocsp: req.data };