Loading lib/static_handler.js +1 −4 Original line number Diff line number Diff line Loading @@ -42,10 +42,7 @@ StaticHandler.prototype.handle = function(incPath, response) { }); } else { // TODO 404 if not match regex //winston.warn('file not found', { path: filePath }); //response.writeHead(404, { 'content-type': 'application/json' }); //response.end(JSON.stringify({ message: 'file not found' })); // serve the default route so that pushstate can work if not found _this.handle('/', response); } }); Loading Loading
lib/static_handler.js +1 −4 Original line number Diff line number Diff line Loading @@ -42,10 +42,7 @@ StaticHandler.prototype.handle = function(incPath, response) { }); } else { // TODO 404 if not match regex //winston.warn('file not found', { path: filePath }); //response.writeHead(404, { 'content-type': 'application/json' }); //response.end(JSON.stringify({ message: 'file not found' })); // serve the default route so that pushstate can work if not found _this.handle('/', response); } }); Loading