semi-correction #470

edit
Hakim El Hattab 2013-06-09 19:17:31 +02:00
parent 1c16148c09
commit 5655b5f467
2 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ app.configure(function() {
}); });
app.get("/", function(req, res) { app.get("/", function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'}) res.writeHead(200, {'Content-Type': 'text/html'});
fs.createReadStream(opts.baseDir + '/index.html').pipe(res); fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
}); });

View File

@ -30,7 +30,7 @@ app.configure(function() {
}); });
app.get("/", function(req, res) { app.get("/", function(req, res) {
res.writeHead(200, {'Content-Type': 'text/html'}) res.writeHead(200, {'Content-Type': 'text/html'});
fs.createReadStream(opts.baseDir + '/index.html').pipe(res); fs.createReadStream(opts.baseDir + '/index.html').pipe(res);
}); });