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

@@ -217,7 +217,7 @@ namespace Jackett.Common.Indexers
private async Task ConfigureDDoSGuardCookie()
{
const string ddosPostUrl = "https://check.ddos-guard.net/check.js";
var response = await WebRequestWithCookiesAsync(ddosPostUrl, string.Empty);
var response = await RequestWithCookiesAsync(ddosPostUrl, string.Empty);
if (response.Status != System.Net.HttpStatusCode.OK)
throw new WebException($"Unexpected DDOS Guard response: Status: {response.Status}", WebExceptionStatus.ProtocolError);
if (response.IsRedirect)