Skip to content
Myr

Merge pull request #1650 from printercu/master

Before adoption: this commit came in with the history the project adopted, so no landing records it.

move .app to req's & res's prototypes

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parents a10f695, a3c9eac · Browse files · 3 files+2 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

3 files+2 added−4 removed

  • other:+2 added−4 removed

3 files+2 added−4 removed

modified:lib/application.js-1 removed
115 unmodified lines
116 app.route = route;117 fn = function(req, res, next) {118 var orig = req.app;119 app.handle(req, res, function(err){120 req.app = res.app = orig;120 req.__proto__ = orig.request;121 res.__proto__ = orig.response;122 next(err);123 });
412 unmodified lines
modified:lib/express.js+2 added-2 removed
modified:lib/middleware.js-1 removed