fixed fullUrl function undefined

This commit is contained in:
Jonathan Barrow
2021-08-22 17:42:53 -04:00
parent 8528864799
commit 65bd441ec5

View File

@@ -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}`;
}