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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user