kopia lustrzana https://github.com/c9/core
Fix not passing host
rodzic
15742463d0
commit
ea585fd0e8
|
@ -34,7 +34,7 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
||||||
|| req.host
|
|| req.host
|
||||||
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
||||||
|| req;
|
|| 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
|
var sourceHostMatcher = sourceBaseUrlPattern
|
||||||
.replace(/^https?:\/\//, "")
|
.replace(/^https?:\/\//, "")
|
||||||
|
|
Ładowanie…
Reference in New Issue