Permalink
Browse files

use app.get() for x-powered-by setting

  • Loading branch information...
1 parent bb29da5 commit fa8eec449bf406cebd7a92d376a098a39a804879 @tj tj committed Jan 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/middleware.js
View
@@ -18,7 +18,7 @@ var utils = require('./utils');
exports.init = function(app){
return function expressInit(req, res, next){
req.app = res.app = app;
- if (app.settings['x-powered-by']) res.setHeader('X-Powered-By', 'Express');
+ if (app.get('x-powered-by')) res.setHeader('X-Powered-By', 'Express');
req.res = res;
res.req = req;
req.next = next;

0 comments on commit fa8eec4

Please sign in to comment.