Fix circular json error

pull/117/merge
Lennart kats 2015-07-01 08:44:36 +00:00
rodzic ea585fd0e8
commit 4477a5f124
1 zmienionych plików z 2 dodań i 1 usunięć

3
node_modules/c9/urls.js wygenerowano vendored
Wyświetl plik

@ -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?:\/\//, "")