Compare commits

..

1 Commits

Author SHA1 Message Date
Christian Richter
1b60082111 make domains configurable & extend webserver
Some checks reported errors
continuous-integration/drone/pr Build was killed
Signed-off-by: Christian Richter <crichter@owncloud.com>
2022-07-19 09:00:09 +02:00

View File

@@ -40,6 +40,7 @@ files.forEach((name) => {
const webServer = http const webServer = http
.createServer((req, res) => { .createServer((req, res) => {
reqFileName = path.parse(req.url).base; reqFileName = path.parse(req.url).base;
console.log(reqFileName);
if (reqFileName == "") { if (reqFileName == "") {
reqFileName = "index.html"; reqFileName = "index.html";
} }