diff --git a/node/server.js b/node/server.js index a6a57497aee..17eb687ee2e 100644 --- a/node/server.js +++ b/node/server.js @@ -77,7 +77,7 @@ async.waterfall([ function (callback) { //create server - var app = express.createServer(); + var app = express(); app.use(function (req, res, next) { res.header("Server", serverName); @@ -135,7 +135,7 @@ async.waterfall([ app.use(express.cookieParser()); }); - app.error(function(err, req, res, next){ + app.use(function(err, req, res, next) { res.send(500); console.error(err.stack ? err.stack : err.toString()); gracefulShutdown(); diff --git a/package.json b/package.json index 8e194c0b3af..b1497c0e71c 100644 --- a/package.json +++ b/package.json @@ -14,7 +14,7 @@ "socket.io" : "0.8.7", "ueberDB" : "0.1.7", "async" : "0.1.15", - "express" : "2.5.0", + "express" : "3.1.0", "clean-css" : "0.3.2", "uglify-js" : "1.2.5", "formidable" : "1.0.7",