Skip to content
Myr

restore req/res proto

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

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 858e4dc · Browse files · 2 files+2 added−2 removed
This commit

State

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

Diff stats

2 files+2 added−2 removed

  • other:+2 added−2 removed

2 files+2 added−2 removed

modified:lib/application.js+2 added
132 unmodified lines
133 fn = function(req, res, next) {134 var orig = req.app;135 app.handle(req, res, function(err){136 req.app = res.app = orig;137 req.__proto__ = orig.request;138 res.__proto__ = orig.response;139 next(err);140 });141 };142 }
405 unmodified lines
modified:lib/middleware.js-2 removed