Add support for gzip'd content (affects an IPTorrents alt URL) (#1) (#920)

This commit is contained in:
Ashleigh Hopkins
2017-01-09 12:12:31 +00:00
committed by kaso17
parent dc8f85d33d
commit d9afee215d

View File

@@ -17,10 +17,10 @@ namespace Jackett.Utils.Clients
public class HttpWebClient : IWebClient public class HttpWebClient : IWebClient
{ {
public HttpWebClient(IProcessService p, Logger l, IConfigurationService c) public HttpWebClient(IProcessService p, Logger l, IConfigurationService c)
: base(p: p, : base(p: p,
l: l, l: l,
c: c) c: c)
{ {
} }
override public void Init() override public void Init()
@@ -67,7 +67,8 @@ namespace Jackett.Utils.Clients
AllowAutoRedirect = false, // Do not use this - Bugs ahoy! Lost cookies and more. AllowAutoRedirect = false, // Do not use this - Bugs ahoy! Lost cookies and more.
UseCookies = true, UseCookies = true,
Proxy = proxyServer, Proxy = proxyServer,
UseProxy = useProxy UseProxy = useProxy,
AutomaticDecompression = DecompressionMethods.GZip | DecompressionMethods.Deflate
}; };
clearanceHandlr.InnerHandler = clientHandlr; clearanceHandlr.InnerHandler = clientHandlr;