core: refactor http webclient part 14 #8529

Remove old http webclients references
This commit is contained in:
ngosang
2020-09-19 19:16:13 +02:00
parent 4d63fa81d5
commit 4b983162fc
3 changed files with 3 additions and 17 deletions

View File

@@ -46,16 +46,7 @@ namespace Jackett.Server
optionsResult.WithParsed(options =>
{
if (string.IsNullOrEmpty(options.Client))
{
if (DotNetCoreUtil.IsRunningOnDotNetCore)
{
options.Client = "httpclient2netcore";
}
else
{
options.Client = "httpclient";
}
}
options.Client = DotNetCoreUtil.IsRunningOnDotNetCore ? "httpclient2" : "httpclient";
Settings = options.ToRunTimeSettings();
consoleOptions = options;