Revert "core: refactor http webclient part 1 #8529 (#7652)"

This reverts commit 0bdcfd1e7b.
This commit is contained in:
ngosang
2020-09-21 08:04:26 +02:00
parent 9c492c5dcb
commit 1271ecaa4c
90 changed files with 380 additions and 380 deletions

View File

@@ -578,7 +578,7 @@ namespace Jackett.Common.Indexers
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The tracker seems to be down.");
}
if (response.Status == System.Net.HttpStatusCode.Forbidden && response.ContentString.Contains("<span data-translate=\"complete_sec_check\">Please complete the security check to access</span>"))
if (response.Status == System.Net.HttpStatusCode.Forbidden && response.Content.Contains("<span data-translate=\"complete_sec_check\">Please complete the security check to access</span>"))
{
throw new Exception("Request to " + response.Request.Url + " failed (Error " + response.Status + ") - The page is protected by an Cloudflare reCaptcha. The page is in aggressive DDoS mitigation mode or your IP might be blacklisted (e.g. in case of shared VPN IPs). There's no easy way of making it usable with Jackett.");
}