kopia lustrzana https://github.com/c9/core
Fix circular json error
rodzic
ea585fd0e8
commit
4477a5f124
|
@ -34,7 +34,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
|
|||
|| req.host
|
||||
|| req.url && req.url.replace(/^https?:\/\/([^/]*).*/, "$1")
|
||||
|| req;
|
||||
assert(typeof sourceHost === "string", "Not a valid request object: " + JSON.stringify(req));
|
||||
if (typeof sourceHost !== "string")
|
||||
throw new Error("Not a valid request object: " + req);
|
||||
|
||||
var sourceHostMatcher = sourceBaseUrlPattern
|
||||
.replace(/^https?:\/\//, "")
|
||||
|
|
Ładowanie…
Reference in New Issue