From d9afee215da6ff5ab2379271e19ef20b39f0a533 Mon Sep 17 00:00:00 2001 From: Ashleigh Hopkins Date: Mon, 9 Jan 2017 12:12:31 +0000 Subject: [PATCH] Add support for gzip'd content (affects an IPTorrents alt URL) (#1) (#920) --- src/Jackett/Utils/Clients/HttpWebClient.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Jackett/Utils/Clients/HttpWebClient.cs b/src/Jackett/Utils/Clients/HttpWebClient.cs index 9a91aa146..7f560b03e 100644 --- a/src/Jackett/Utils/Clients/HttpWebClient.cs +++ b/src/Jackett/Utils/Clients/HttpWebClient.cs @@ -17,10 +17,10 @@ namespace Jackett.Utils.Clients public class HttpWebClient : IWebClient { public HttpWebClient(IProcessService p, Logger l, IConfigurationService c) - : base(p: p, - l: l, + : base(p: p, + l: l, c: c) - { + { } override public void Init() @@ -67,7 +67,8 @@ namespace Jackett.Utils.Clients AllowAutoRedirect = false, // Do not use this - Bugs ahoy! Lost cookies and more. UseCookies = true, Proxy = proxyServer, - UseProxy = useProxy + UseProxy = useProxy, + AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate }; clearanceHandlr.InnerHandler = clientHandlr;