From a4d95cc1d83dae35646e9c4585faf1dae28955dc Mon Sep 17 00:00:00 2001 From: Qstick Date: Mon, 24 May 2021 21:49:28 -0400 Subject: [PATCH] Fixed: Follow redirects on Download when Indexer type allows --- src/NzbDrone.Core/Indexers/HttpIndexerBase.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs index 91d695a15..e9a1ac591 100644 --- a/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs +++ b/src/NzbDrone.Core/Indexers/HttpIndexerBase.cs @@ -120,11 +120,14 @@ namespace NzbDrone.Core.Indexers requestBuilder.SetCookies(Cookies); } + var request = requestBuilder.Build(); + request.AllowAutoRedirect = FollowRedirect; + var downloadBytes = Array.Empty(); try { - var response = await _httpClient.ExecuteAsync(requestBuilder.Build()); + var response = await _httpClient.ExecuteAsync(request); downloadBytes = response.ResponseData; } catch (Exception)