mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
Fix circular json error
This commit is contained in:
parent
ea585fd0e8
commit
4477a5f124
3
node_modules/c9/urls.js
generated
vendored
3
node_modules/c9/urls.js
generated
vendored
@ -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?:\/\//, "")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user