1
0
Fork 0
mirror of https://github.com/SunRed/haste-server.git synced 2024-11-23 17:50:19 +01:00

Cleanup todo

This commit is contained in:
John Crepezzi 2011-11-18 17:14:44 -05:00
parent f48cc45928
commit 4a435a4be5

View file

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