core: refactor http webclient part 16 #8529

Rename RequestWithCookiesAsync method
This commit is contained in:
ngosang
2020-09-21 18:39:47 +02:00
parent 5ad1c9c87c
commit 621a47338d
58 changed files with 123 additions and 121 deletions

View File

@@ -124,7 +124,7 @@ namespace Jackett.Common.Indexers
private async Task<dynamic> SendAPIRequest(string endpoint, object data)
{
var jsonData = JsonConvert.SerializeObject(data);
var result = await WebRequestWithCookiesAsync(
var result = await RequestWithCookiesAsync(
APIUrl + endpoint, method: RequestType.POST, referer: SiteLink, headers: APIHeaders, rawbody: jsonData);
if (!result.ContentString.StartsWith("{")) // not JSON => error
throw new ExceptionWithConfigData(result.ContentString, configData);