forked from svrjs/svrjs
Replace some var's with const's in URL rewrite and web root postfix middleware.
This commit is contained in:
parent
2481e3ed58
commit
a3e4ee2328
2 changed files with 4 additions and 4 deletions
|
@ -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 (
|
||||
|
|
|
@ -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 (
|
||||
|
|
Reference in a new issue