mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Just strip out " from cluster response because Spidermonkey JSON.parse does not allow literals.
This commit is contained in:
parent
f20a2b4143
commit
a2e27b0d93
@ -472,6 +472,8 @@ WeaveSvc.prototype = {
|
||||
this._log.debug("Using serverURL as data cluster (multi-cluster support disabled)");
|
||||
return Svc.Prefs.get("serverURL");
|
||||
case 200:
|
||||
// The server gives JSON of a string literal, but JS doesn't allow it
|
||||
res.data = res.data.replace(/"/g, "");
|
||||
return "https://" + res.data + "/";
|
||||
default:
|
||||
this._log.debug("Unexpected response code trying to find cluster: " + res.lastChannel.responseStatus);
|
||||
|
Loading…
Reference in New Issue
Block a user