Skip to content
Myr

use app.path() in res.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 17a831e · 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/response.js+3 added-1 removed
497 unmodified lines
498 url = mapped || url;499500 // Relative501 if (!~url.indexOf('://')) {502 var path = app.path() || root;503504 // Respect mount-point503 if (0 != url.indexOf(app.route)) url = app.route + url;505 if (0 != url.indexOf(path)) url = path + url;506507 // Absolute508 var host = req.header('Host')509 , tls = false // TODO: req.secure;
89 unmodified lines