From 6ecc500dde5b87c12d21b50401ff7e2c7212b3b8 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Mon, 15 Jan 2018 20:20:23 +0100 Subject: [PATCH] libcurl: add support for new cloudflare server type --- src/Jackett.Common/Utils/Clients/UnixLibCurlWebClient.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Jackett.Common/Utils/Clients/UnixLibCurlWebClient.cs b/src/Jackett.Common/Utils/Clients/UnixLibCurlWebClient.cs index ded60935a..cbee1dc44 100644 --- a/src/Jackett.Common/Utils/Clients/UnixLibCurlWebClient.cs +++ b/src/Jackett.Common/Utils/Clients/UnixLibCurlWebClient.cs @@ -70,7 +70,7 @@ namespace Jackett.Utils.Clients // check if we've received a CloudFlare challenge 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");