From 65bd441ec542025407bdb6055177f2f3fc92b6dc Mon Sep 17 00:00:00 2001 From: Jonathan Barrow Date: Sun, 22 Aug 2021 17:42:53 -0400 Subject: [PATCH] fixed fullUrl function undefined --- src/util.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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}`; }