libcurl: add support for new cloudflare server type

This commit is contained in:
kaso17 2018-01-15 20:20:23 +01:00
parent f452f20189
commit 6ecc500dde
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ namespace Jackett.Utils.Clients
// check if we've received a CloudFlare challenge // check if we've received a CloudFlare challenge
string[] server; string[] server;
if (result.Status == HttpStatusCode.ServiceUnavailable && result.Headers.TryGetValue("server", out server) && server[0] == "cloudflare-nginx") if (result.Status == HttpStatusCode.ServiceUnavailable && result.Headers.TryGetValue("server", out server) && (server[0] == "cloudflare-nginx" || server[0] == "cloudflare"))
{ {
logger.Info("UnixLibCurlWebClient: Received a new CloudFlare challenge"); logger.Info("UnixLibCurlWebClient: Received a new CloudFlare challenge");