Skip to content
Snippets Groups Projects
Commit 710f75a1 authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

remove custom 404 pages now that postprocess is fixed to not surpress data sent in res.enc()

parent 11471518
No related branches found
No related tags found
No related merge requests found
...@@ -170,13 +170,6 @@ app.use(function(req, res, next) { ...@@ -170,13 +170,6 @@ app.use(function(req, res, next) {
app.use(express.static(path.join(__dirname, "..", "resources", "static"))); app.use(express.static(path.join(__dirname, "..", "resources", "static")));
// custom 404 page
app.use(function(req, res,next) {
res.statusCode = 404;
res.write("Cannot find this resource");
res.end();
});
// open the databse // open the databse
db.open(config.get('database'), function (error) { db.open(config.get('database'), function (error) {
if (error) { if (error) {
......
...@@ -129,13 +129,6 @@ app.post('/verify', function(req, resp, next) { ...@@ -129,13 +129,6 @@ app.post('/verify', function(req, resp, next) {
// shutdown when /code_update is invoked // shutdown when /code_update is invoked
shutdown.installUpdateHandler(app); shutdown.installUpdateHandler(app);
// custom 404
app.use(function(req, res,next) {
res.statusCode = 404;
res.write("Cannot find this resource");
res.end();
});
// shutdown nicely on signals // shutdown nicely on signals
shutdown.handleTerminationSignals(app, function() { shutdown.handleTerminationSignals(app, function() {
cc.exit(); cc.exit();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment