From a28f2fd21d65d20fea0850385ea07b305d031dfe Mon Sep 17 00:00:00 2001 From: Leonardo Galli Date: Sun, 24 Feb 2019 18:06:48 +0100 Subject: [PATCH] Fixed: OsInfo being renamed to PlatformInfo --- src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs index d3ae7bbdb..660daad5a 100644 --- a/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs +++ b/src/NzbDrone.Common/Http/Dispatchers/ManagedHttpDispatcher.cs @@ -28,7 +28,7 @@ public HttpResponse GetResponse(HttpRequest request, CookieContainer cookies) { webRequest = (HttpWebRequest) WebRequest.Create((Uri) request.Url); - if (PlatformInfo.IsMono) + if (OsInfo.IsMonoRuntime) { // On Mono GZipStream/DeflateStream leaks memory if an exception is thrown, use an intermediate buffer in that case. webRequest.AutomaticDecompression = DecompressionMethods.None; @@ -98,7 +98,7 @@ public HttpResponse GetResponse(HttpRequest request, CookieContainer cookies) { data = responseStream.ToBytes(); - if (PlatformInfo.IsMono && httpWebResponse.ContentEncoding == "gzip") + if (OsInfo.IsMonoRuntime && httpWebResponse.ContentEncoding == "gzip") { using (var compressedStream = new MemoryStream(data)) using (var gzip = new GZipStream(compressedStream, CompressionMode.Decompress))