Skip to content

Commit

Permalink
- release version 3.14.0
Browse files Browse the repository at this point in the history
- Fix getFullUrlFromRequest and use req.get('host')
  • Loading branch information
eldarlandman committed Jan 11, 2024
1 parent 17a5a15 commit 5b32446
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pxutil.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const { EMAIL_ADDRESS_REGEX, HASH_ALGORITHM } = require('./utils/constants');
*/

function getFullUrlFromRequest(req) {
return `${req.protocol}://${req.hostname}${req.originalUrl}`;
return `${req.protocol}://${req.get('host')}${req.originalUrl}`;
}

function formatHeaders(headers, sensitiveHeaders) {
Expand Down

0 comments on commit 5b32446

Please sign in to comment.