Skip to content
Myr

No need to pass params in app.redirect()

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 1579f53 · 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/express/response.js+1 added-1 removed
224 unmodified lines
225 map.__proto__ = this.app.redirects;226227 // Attempt mapped redirect228 var mapped = typeof map[url] === 'function'229 ? map[url](this.req, this, this.req.params.path)229 ? map[url](this.req, this)230 : map[url];231232 // Perform redirect233 this.writeHead(status || 302, { 'Location': mapped || url });
2 unmodified lines