Skip to content
This repository has been archived by the owner on Dec 1, 2017. It is now read-only.

Commit

Permalink
Removing the 'X-Powered-By' header to keep it a sekrit. (shhh)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwex committed Jun 1, 2012
1 parent 8ae1132 commit 9b8fd91
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/http/server.js
Expand Up @@ -94,7 +94,12 @@ http.configure(function(){
key: 'express.sid',
store: sessionStore
}));


http.use(function (req, res, next) {
res.removeHeader("X-Powered-By");
next();
});

// Initialize Passport!
http.use(passport.initialize());
// Support persistent sessions:
Expand Down

0 comments on commit 9b8fd91

Please sign in to comment.