Revert "core: refactor http webclient part 13 #8529 (#8941)"

This reverts commit 4d63fa81d5.
This commit is contained in:
ngosang
2020-09-21 08:02:53 +02:00
parent 9d5636cc19
commit ca61f965e9
91 changed files with 399 additions and 330 deletions

View File

@@ -12,7 +12,6 @@ using Jackett.Common.Models;
using Jackett.Common.Models.IndexerConfig.Bespoke;
using Jackett.Common.Services.Interfaces;
using Jackett.Common.Utils;
using Jackett.Common.Utils.Clients;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NLog;
@@ -180,7 +179,7 @@ namespace Jackett.Common.Indexers
}
// Get the content from the tracker
var response = await RequestWithCookiesAndRetryAsync(queryUrl);
var response = await RequestStringWithCookiesAndRetry(queryUrl);
if (!response.ContentString.StartsWith("{")) // not JSON => error
throw new ExceptionWithConfigData("unexcepted response (not JSON)", configData);
dynamic json = JsonConvert.DeserializeObject<dynamic>(response.ContentString);