next-lib refactoring
This commit is contained in:
1 parent
fe5cc36182
commit
6c201f9305
1 file changed
+4
-3
+4
-3
@@ -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,
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user