Revert "core: refactor http webclient part 14 #8529"

This reverts commit 4b983162fc.
This commit is contained in:
ngosang
2020-09-21 08:02:41 +02:00
parent bfcfe855bc
commit 9d5636cc19
3 changed files with 17 additions and 3 deletions

View File

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