mirror of https://github.com/Jackett/Jackett
libcurl: add support for new cloudflare server type
This commit is contained in:
parent
f452f20189
commit
6ecc500dde
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue