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
|
if (defaultLocalhost) host = defaultLocalhost
|
||||||
protocol = 'http:'
|
protocol = 'http:'
|
||||||
}
|
}
|
||||||
|
const origin = protocol + '//' + host
|
||||||
|
|
||||||
return {
|
return {
|
||||||
protocol: protocol,
|
protocol,
|
||||||
host: host,
|
host,
|
||||||
origin: protocol + '//' + host
|
origin,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user