diff options
| author | Teddy Wing | 2013-04-27 19:25:40 -0400 | 
|---|---|---|
| committer | Teddy Wing | 2013-04-27 19:25:56 -0400 | 
| commit | 512e8b2da71de59132a29e80d7359ac843d62f07 (patch) | |
| tree | 3f5024a4f75072eda45713dcd429a0b58bf969b9 /node_modules/express/lib/middleware.js | |
| parent | 4b14305623d5ddc59f435fc5e35c54c0def1d392 (diff) | |
| download | Who-am-I-512e8b2da71de59132a29e80d7359ac843d62f07.tar.bz2 | |
Untrack ./node_modules
Sorry, my bad for not ignoring it initially.
Diffstat (limited to 'node_modules/express/lib/middleware.js')
| -rw-r--r-- | node_modules/express/lib/middleware.js | 33 | 
1 files changed, 0 insertions, 33 deletions
| diff --git a/node_modules/express/lib/middleware.js b/node_modules/express/lib/middleware.js deleted file mode 100644 index 308c5bb..0000000 --- a/node_modules/express/lib/middleware.js +++ /dev/null @@ -1,33 +0,0 @@ - -/** - * Module dependencies. - */ - -var utils = require('./utils'); - -/** - * Initialization middleware, exposing the - * request and response to eachother, as well - * as defaulting the X-Powered-By header field. - * - * @param {Function} app - * @return {Function} - * @api private - */ - -exports.init = function(app){ -  return function expressInit(req, res, next){ -    req.app = res.app = app; -    if (app.enabled('x-powered-by')) res.setHeader('X-Powered-By', 'Express'); -    req.res = res; -    res.req = req; -    req.next = next; - -    req.__proto__ = app.request; -    res.__proto__ = app.response; - -    res.locals = res.locals || utils.locals(res); - -    next(); -  } -}; | 
