Skip to content
Myr

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

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

authored by Max Melentiev · committed by Max Melentiev · parent 19d685b · 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