1
0
Fork 0
forked from svrjs/svrjs

Replace some var's with const's in URL rewrite and web root postfix middleware.

This commit is contained in:
Dorian Niemiec 2024-08-24 08:24:39 +02:00
parent 2481e3ed58
commit a3e4ee2328
2 changed files with 4 additions and 4 deletions

View file

@ -128,11 +128,11 @@ module.exports = (req, res, logFacilities, config, next) => {
return;
}
var sHref = sanitizeURL(
const sHref = sanitizeURL(
req.parsedURL.pathname,
config.allowDoubleSlashes,
);
var preparedReqUrl2 =
const preparedReqUrl2 =
req.parsedURL.pathname + req.parsedURL.search + req.parsedURL.hash;
if (

View file

@ -95,11 +95,11 @@ module.exports = (req, res, logFacilities, config, next) => {
return;
}
var sHref = sanitizeURL(
const sHref = sanitizeURL(
req.parsedURL.pathname,
config.allowDoubleSlashes,
);
var preparedReqUrl2 =
const preparedReqUrl2 =
req.parsedURL.pathname + req.parsedURL.search + req.parsedURL.hash;
if (