Work on multi-domain support in IDE and apps-proxy

pull/117/merge
Lennart kats 2015-06-30 14:31:19 +00:00
rodzic 959d6c275d
commit 15742463d0
1 zmienionych plików z 2 dodań i 0 usunięć

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

@ -54,6 +54,8 @@ plugin.getBaseUrl = function(req, sourceBaseUrlPattern, targetBaseUrlPattern) {
if (targetHost.match(/^(ide|vfs)./) && !targetBaseUrlPattern)
errorLogger.log(new Error("Warning: no targetBaseUrlPattern specified, will stay at " + targetHost), { sourceBaseUrlPattern: sourceBaseUrlPattern });
if (targetHost.match(/^(ide|vfs)./))
console.trace("Warning: possibly incorrect baseUrl constructed, with 'ide.' in the hostname: " + targetHost);
return replaceDomain(targetBaseUrlPattern || sourceBaseUrlPattern, targetHost)
.replace(/\/$/, "");
};