diff --git a/src/util.js b/src/util.js index 619b1de..10766bf 100644 --- a/src/util.js +++ b/src/util.js @@ -160,9 +160,9 @@ function unpackToken(token) { } function fullUrl(request) { - const protocol = request.get('protocol'); - const host = request.get('host'); - const path = request.get('originalUrl'); + const protocol = request.protocol; + const host = request.host; + const path = request.originalUrl; return `${protocol}://${host}${path}`; }