mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-20 21:54:25 -04:00
Fixed: RestClient does not use global proxy settings
Signed-off-by: Robin Dadswell <robin@dadswell.email>
This commit is contained in:
@@ -18,10 +18,12 @@ namespace NzbDrone.Core.Notifications.Subsonic
|
||||
|
||||
public class SubsonicServerProxy : ISubsonicServerProxy
|
||||
{
|
||||
private readonly IRestClientFactory _restClientFactory;
|
||||
private readonly Logger _logger;
|
||||
|
||||
public SubsonicServerProxy(Logger logger)
|
||||
public SubsonicServerProxy(IRestClientFactory restClientFactory, Logger logger)
|
||||
{
|
||||
_restClientFactory = restClientFactory;
|
||||
_logger = logger;
|
||||
}
|
||||
|
||||
@@ -78,7 +80,7 @@ namespace NzbDrone.Core.Notifications.Subsonic
|
||||
|
||||
private RestClient GetSubsonicServerClient(SubsonicSettings settings)
|
||||
{
|
||||
return RestClientFactory.BuildClient(GetBaseUrl(settings, "rest"));
|
||||
return _restClientFactory.BuildClient(GetBaseUrl(settings, "rest"));
|
||||
}
|
||||
|
||||
private RestRequest GetSubsonicServerRequest(string resource, Method method, SubsonicSettings settings)
|
||||
|
||||
Reference in New Issue
Block a user