We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b67bbdc commit 8ebac90Copy full SHA for 8ebac90
lib/server.js
@@ -38,7 +38,7 @@ exports.Server = function Server(bsClient, workers) {
38
}
39
40
if (fs.lstatSync(filename).isDirectory()) {
41
- filename = filename + "index.html";
+ filename = filename + (filename.lastIndexOf('/') == filename.length - 1 ? "" : "/") + "index.html";
42
43
44
fs.readFile(filename, "binary", function(err, file) {
0 commit comments