Fixed: (Indexers) Hide errors with SuppressHttpErrorStatusCodes

This commit is contained in:
Bogdan
2023-04-23 06:56:24 +03:00
parent 43f881c442
commit d2ba52cdce
4 changed files with 8 additions and 8 deletions
@@ -67,9 +67,9 @@ namespace NzbDrone.Core.Indexers.Definitions.Avistaz
_logger.Debug("Avistaz authentication succeeded.");
}
protected override bool CheckIfLoginNeeded(HttpResponse response)
protected override bool CheckIfLoginNeeded(HttpResponse httpResponse)
{
return response.StatusCode == HttpStatusCode.Unauthorized || response.StatusCode == HttpStatusCode.PreconditionFailed;
return httpResponse.StatusCode is HttpStatusCode.Unauthorized or HttpStatusCode.PreconditionFailed;
}
protected override void ModifyRequest(IndexerRequest request)