Skip to content
Myr

Allow req.query to be pre-defined (via middleware or other parent app)

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 67c4c90 · Browse files · 1 file+1 added−1 removed
This commit

State

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

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:lib/server.js+1 added-1 removed
41 unmodified lines
42 this.set('env', process.env.NODE_ENV || 'development');4344 // Expose objects to each other45 this.use(function(req, res, next){46 req.query = {};46 req.query = req.query || {};47 res.headers = { 'X-Powered-By': 'Express' };48 req.app = res.app = self;49 req.res = res;50 res.req = req;
409 unmodified lines