mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Fix not passing host
This commit is contained in:
parent
15742463d0
commit
ea585fd0e8
2
node_modules/c9/urls.js
generated
vendored
2
node_modules/c9/urls.js
generated
vendored
@ -34,7 +34,7 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
||||
|| req.host
|
||||
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
||||
|| req;
|
||||
assert(!sourceHost.match(/\$DOMAIN/), "Please provide a valid request object");
|
||||
assert(typeof sourceHost === "string", "Not a valid request object: " + JSON.stringify(req));
|
||||
|
||||
var sourceHostMatcher = sourceBaseUrlPattern
|
||||
.replace(/^https?:\/\//, "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user