Safer string interpolation

This commit is contained in:
MICHAEL JACKSON 2017-11-14 15:19:17 -08:00
parent a38eebfe7e
commit 67a17a961b
1 changed files with 1 additions and 1 deletions

View File

@ -73,7 +73,7 @@ function parseURL(req, res, next) {
req.packageName = url.packageName
req.packageVersion = url.packageVersion
req.packageSpec = `${req.packageName}@${req.packageVersion}`
req.packageSpec = `${url.packageName}@${url.packageVersion}`
req.pathname = url.pathname
req.filename = url.filename
req.search = url.search