Skip to content

Commit

Permalink
ocd
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Nov 26, 2013
1 parent de54af4 commit 8a7a695
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ res.location = function(url){
, path;

// "back" is an alias for the referrer
if(url === 'back') url = req.get('Referrer') || '/';
if ('back' == url) url = req.get('Referrer') || '/';

// relative
if (!~url.indexOf('://') && 0 != url.indexOf('//')) {
Expand Down

0 comments on commit 8a7a695

Please sign in to comment.