Skip to content

Commit 7406f74

Browse files
committed
To support projects without express
1 parent a9318c3 commit 7406f74

File tree

1 file changed

+1
-1
lines changed
  • lib/passport-http-oauth/strategies

1 file changed

+1
-1
lines changed

lib/passport-http-oauth/strategies/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ exports.originalURL = function(req, defaultHost) {
2626
? 'https'
2727
: 'http'
2828
, host = defaultHost || headers.host
29-
, path = req.originalUrl || '';
29+
, path = (typeof req.originalUrl != 'undefined' ? req.originalUrl : req.url) || '';
3030
return protocol + '://' + host + path;
3131
};
3232

0 commit comments

Comments
 (0)