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
1 changed files with 5 additions and 4 deletions

View File

@ -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;