1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-21 22:05:38 -04:00

Use modern HttpClient

Co-Authored-By: ta264 <ta264@users.noreply.github.com>
This commit is contained in:
Qstick
2021-11-13 15:10:42 -06:00
committed by Mark McDowall
parent bff1fe7890
commit 4c0fe62dda
69 changed files with 1271 additions and 1060 deletions
@@ -1,4 +1,4 @@
using System;
using System;
using System.Net;
using NzbDrone.Common.Http;
using NzbDrone.Common.Http.Proxy;
@@ -15,7 +15,7 @@ namespace NzbDrone.Core.Http
_configService = configService;
}
public HttpProxySettings GetProxySettings(HttpRequest request)
public HttpProxySettings GetProxySettings(HttpUri uri)
{
var proxySettings = GetProxySettings();
if (proxySettings == null)
@@ -23,7 +23,7 @@ namespace NzbDrone.Core.Http
return null;
}
if (ShouldProxyBeBypassed(proxySettings, request.Url))
if (ShouldProxyBeBypassed(proxySettings, uri))
{
return null;
}