Skip to content

Commit

Permalink
include the mount path when recreating the original URL
Browse files Browse the repository at this point in the history
  • Loading branch information
LittleCodeGeek committed Dec 11, 2017
1 parent cddb411 commit 5dff265
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/passport-http-oauth/strategies/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ exports.originalURL = function(req, defaultHost) {
? 'https'
: 'http'
, host = defaultHost || headers.host
, base = req.baseUrl || ''
, path = req.url || '';
return protocol + '://' + host + path;
return protocol + '://' + host + base + path;
};

/**
Expand Down

0 comments on commit 5dff265

Please sign in to comment.