Skip to content
Myr

req.query is always present

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 fed7fa4 · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:lib/application.js+3 added-1 removed
40 unmodified lines
41 this.engines = {};42 this.redirects = {};43 this.isCallbacks = {};4445 // default settings46 this.set('home', '/');47 this.set('env', process.env.NODE_ENV || 'development');4849 // always parse req.query50 this.use(connect.query());5152 /**53 * Assign several locals with the given `obj`,
13 unmodified lines
6768 // expose objects to each other69 this.use(function(req, res, next){70 var charset;68 req.query = req.query || {};71 res.setHeader('X-Powered-By', 'Express');72 req.app = res.app = self;73 req.res = res;74 res.req = req;
527 unmodified lines