mellon-server
Advanced tools
Comparing version 1.0.6 to 1.0.7
@@ -49,3 +49,3 @@ const http = require('http'); | ||
} | ||
else if (stat && stat.isDirectory()) { | ||
else if (pathItem.endsWith('/') && stat && stat.isDirectory()) { | ||
doDir(`${public_dir}/${pathItem}`,pathItem,req,res); | ||
@@ -127,3 +127,3 @@ } | ||
let content = '<html><body>'; | ||
let baseUrl = base ? base : "http://${host}:${port}"; | ||
let baseUrl = base ? base : `http://${host}:${port}`; | ||
@@ -130,0 +130,0 @@ lsDir.forEach( (entry) => { |
{ | ||
"name": "mellon-server", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A small hackable HTTP server", | ||
@@ -5,0 +5,0 @@ "main": "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
6532