next-lib refactoring

This commit is contained in:
tmshv committed 2019-10-13 19:57:25 +03:00
1 parent fe5cc36182
commit 6c201f9305
1 file changed
+4 -3
+4 -3
View File
@@ -42,10 +42,11 @@ function absoluteUrl(req, defaultLocalhost) {
if (defaultLocalhost) host = defaultLocalhost
protocol = 'http:'
}
const origin = protocol + '//' + host
return {
protocol: protocol,
host: host,
origin: protocol + '//' + host
protocol,
host,
origin,
}
}