Skip to content

Commit

Permalink
Merge pull request #8 from AusIV/master
Browse files Browse the repository at this point in the history
Use req.originalUrl when available
  • Loading branch information
camme committed Oct 3, 2015
2 parents ed2326c + 86d7471 commit 3cd5be4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/utils.js
Expand Up @@ -29,7 +29,7 @@ exports.originalURL = function(req, defaultHost) {
? 'https'
: 'http'
, host = defaultHost || headers.host
, path = req.url || '';
, path = req.originalUrl || req.url || '';
return protocol + '://' + host + path;
};

Expand Down

0 comments on commit 3cd5be4

Please sign in to comment.