diff --git a/lib/passport-http-oauth/strategies/utils.js b/lib/passport-http-oauth/strategies/utils.js index 8572623..2332a44 100644 --- a/lib/passport-http-oauth/strategies/utils.js +++ b/lib/passport-http-oauth/strategies/utils.js @@ -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; }; /**