avoid crash when opening http://127.0.0.1:4100 in the browser ( closes #73 )

Esse commit está contido em:
Simon Kusterer
2015-02-16 19:01:13 +01:00
commit 2e6f45caba
+4
Ver Arquivo
@@ -40,6 +40,10 @@ var localfile = function(ctx, next) {
});
route.all('/{idx}', function(req, res) {
if (!list[req.params.idx]) {
res.statusCode = '404';
return res.end('page not found');
}
debug('incoming request serving %s', list[req.params.idx].path);
serveMp4(req, res, list[req.params.idx].path);
});