From 8c4181ef7e7072f28b917d65480e52c7ae4a1418 Mon Sep 17 00:00:00 2001 From: Fabian Jakobs Date: Fri, 11 Feb 2011 12:52:33 +0100 Subject: [PATCH] let server.js serve index.html by default --- static.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static.js b/static.js index a0684679..a08f00bf 100644 --- a/static.js +++ b/static.js @@ -17,7 +17,7 @@ http.createServer(function(request, response) { return; } - if (fs.statSync(filename).isDirectory()) filename += '/editor.html'; + if (fs.statSync(filename).isDirectory()) filename += '/index.html'; fs.readFile(filename, "binary", function(err, file) { if(err) {