Skip to content
Myr

Removed redirect "home"

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 83fb9f7 · Browse files · 1 file+1 added−5 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−5 removed

  • other:+1 added−5 removed

1 file+1 added−5 removed

modified:lib/response.js+1 added-5 removed
451 unmodified lines
452453res.redirect = function(url){454 var app = this.app455 , req = this.req456 , root = '/'456 , head = 'HEAD' == req.method457 , status = 302458 , body;459
3 unmodified lines
463 url = arguments[1];464 }465466 // setup redirect map468 var map = {469 back: req.header('Referrer', root)470 , home: root471 };467 var map = { back: req.header('Referrer', '/') };468469 // perform redirect470 url = map[url] || url;471
104 unmodified lines