Comparing version 0.1.1 to 0.1.2
@@ -150,3 +150,6 @@ "use strict"; | ||
} | ||
const expectedRequestPath = `/${path.relative(rootDir, requestedPath).replace(/\\/g, '/')}/`; | ||
let expectedRequestPath = `${path.relative(rootDir, requestedPath).replace(/\\/g, '/')}/`; | ||
if (expectedRequestPath.charAt(0) !== '/') { | ||
expectedRequestPath = `/${expectedRequestPath}`; | ||
} | ||
if (pathname !== expectedRequestPath) { | ||
@@ -153,0 +156,0 @@ return redirect(req, res, expectedRequestPath); |
{ | ||
"name": "yaserver", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Yet Another Server", | ||
@@ -5,0 +5,0 @@ "main": "out/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
11873
232