mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-12-23 22:28:00 -05:00
Fixed: (Indexers) Rate limit auth requests
This commit is contained in:
@@ -493,6 +493,11 @@ protected async Task<HttpResponse> ExecuteAuth(HttpRequest request)
|
||||
{
|
||||
request.Encoding = Encoding;
|
||||
|
||||
if (request.RateLimit < RateLimit)
|
||||
{
|
||||
request.RateLimit = RateLimit;
|
||||
}
|
||||
|
||||
var response = await _httpClient.ExecuteProxiedAsync(request, Definition);
|
||||
|
||||
_eventAggregator.PublishEvent(new IndexerAuthEvent(Definition.Id, !response.HasHttpError, response.ElapsedTime));
|
||||
|
||||
Reference in New Issue
Block a user