Permalink
Browse files

Update dependencies; Improve 404 and 500 status code

  • Loading branch information...
1 parent dc228ed commit 2f78ded8cfd2408bc1d5a3f512235c60fa7bf373 @wdavidw wdavidw committed with Sep 18, 2010
Showing with 5 additions and 9 deletions.
  1. +1 −1 lib/Socket.IO
  2. +1 −1 lib/Socket.IO-node
  3. +1 −1 lib/express
  4. +2 −6 server.js
View
@@ -25,9 +25,7 @@ server.error(function(err, req, res, next){
,description: ''
,author: ''
,analyticssiteid: 'XXXXXXX'
- } },function(err,str){
- res.send(str,{},404);
- });
+ },status: 404 });
} else {
res.render('500.ejs', { locals: {
header: '#Header#'
@@ -37,9 +35,7 @@ server.error(function(err, req, res, next){
,author: ''
,analyticssiteid: 'XXXXXXX'
,error: err
- } },function(err,str){
- res.send(str,{},500);
- });
+ },status: 500 });
}
});
server.listen( port);

0 comments on commit 2f78ded

Please sign in to comment.