Skip to content

Commit 9cf440d

Browse files
authored
Merge pull request #16 from algrimes/main
Serve full directory paths
2 parents f7b015a + 2fb147b commit 9cf440d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nodejs/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const serve = serveStatic(internalIsoPath, { fallthrough: false });
1010

1111
function handleListing(rewrites, res) {
1212
res.setHeader("Content-Type", "text/plain");
13-
res.writeHead(200).end("/\n" + rewrites.map((rewrite) => rewrite.source).join("\n"));
13+
res.writeHead(200).end("/\n" + rewrites.map((rewrite) => rewrite.destination).join("\n"));
1414
}
1515

1616
function flattenDirToRewrites(dirPath, subdir = "/", list = []) {

0 commit comments

Comments
 (0)