1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-09-16 09:26:36 +02:00

Follow redirects for usenet grabs on non-prod builds

This commit is contained in:
Bogdan
2025-05-25 20:04:55 +03:00
committed by Mark McDowall
parent 103b1335b9
commit 1cdca8ef3e

View File

@@ -48,6 +48,7 @@ namespace NzbDrone.Core.Download
{
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
request.RateLimitKey = remoteEpisode?.Release?.IndexerId.ToString();
request.AllowAutoRedirect = true;
var response = await RetryStrategy
.ExecuteAsync(static async (state, _) => await state._httpClient.GetAsync(state.request), (_httpClient, request))