We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9318c3 commit 7406f74Copy full SHA for 7406f74
lib/passport-http-oauth/strategies/utils.js
@@ -26,7 +26,7 @@ exports.originalURL = function(req, defaultHost) {
26
? 'https'
27
: 'http'
28
, host = defaultHost || headers.host
29
- , path = req.originalUrl || '';
+ , path = (typeof req.originalUrl != 'undefined' ? req.originalUrl : req.url) || '';
30
return protocol + '://' + host + path;
31
};
32
0 commit comments