diff --git a/Dotnet/WebApi.cs b/Dotnet/WebApi.cs index f00596a9..55e6e160 100644 --- a/Dotnet/WebApi.cs +++ b/Dotnet/WebApi.cs @@ -181,7 +181,8 @@ namespace VRCX { if (ProxySet) request.Proxy = Proxy; - + + request.AutomaticDecompression = DecompressionMethods.All; request.Method = "POST"; string boundary = "---------------------------" + DateTime.Now.Ticks.ToString("x"); request.ContentType = "multipart/form-data; boundary=" + boundary; @@ -228,7 +229,8 @@ namespace VRCX { if (ProxySet) request.Proxy = Proxy; - + + request.AutomaticDecompression = DecompressionMethods.All; request.Method = "PUT"; request.ContentType = options["fileMIME"] as string; var fileData = options["fileData"] as string; @@ -245,7 +247,8 @@ namespace VRCX { if (ProxySet) request.Proxy = Proxy; - + + request.AutomaticDecompression = DecompressionMethods.All; request.Method = "POST"; string boundary = "---------------------------" + DateTime.Now.Ticks.ToString("x"); request.ContentType = "multipart/form-data; boundary=" + boundary; @@ -307,6 +310,7 @@ namespace VRCX request.CookieContainer = _cookieContainer; request.KeepAlive = true; request.UserAgent = Program.Version; + request.AutomaticDecompression = DecompressionMethods.All; if (options.TryGetValue("headers", out object headers)) { diff --git a/html/src/app.js b/html/src/app.js index e8840dae..48541623 100644 --- a/html/src/app.js +++ b/html/src/app.js @@ -23522,21 +23522,6 @@ speechSynthesis.getVoices(); } }); - API.setWorldImage = function (params) { - return this.call(`worlds/${params.id}`, { - method: 'PUT', - params - }).then((json) => { - var args = { - json, - params - }; - this.$emit('WORLDIMAGE:SET', args); - this.$emit('WORLD', args); - return args; - }); - }; - API.$on('WORLDIMAGE:SET', function (args) { $app.worldDialog.loading = false; $app.changeWorldImageDialogLoading = false;