mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2026-04-27 23:16:58 -04:00
Better Captcha message.
This commit is contained in:
@@ -15,5 +15,10 @@ namespace NzbDrone.Core.Http.CloudFlare
|
||||
Response = response;
|
||||
CaptchaRequest = captchaRequest;
|
||||
}
|
||||
|
||||
public bool IsExpired
|
||||
{
|
||||
get { return Response.Request.Cookies.ContainsKey("cf_clearance"); }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace NzbDrone.Core.Http.CloudFlare
|
||||
{
|
||||
if (response.StatusCode == HttpStatusCode.Forbidden && response.Content.Contains(_cloudFlareChallengeScript))
|
||||
{
|
||||
_logger.Error("CloudFlare CAPTCHA block on {0}", response.Request.Url);
|
||||
_logger.Debug("CloudFlare CAPTCHA block on {0}", response.Request.Url);
|
||||
throw new CloudFlareCaptchaException(response, CreateCaptchaRequest(response));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user