mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-06 04:52:21 -07:00
Follow redirects for usenet grabs on non-prod builds
(cherry picked from commit 1cdca8ef3e47e19c9264db6b322161b615b20294)
This commit is contained in:
parent
1bcb82eed0
commit
086a451dff
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,7 @@ namespace NzbDrone.Core.Download
|
||||||
{
|
{
|
||||||
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
|
var request = indexer?.GetDownloadRequest(url) ?? new HttpRequest(url);
|
||||||
request.RateLimitKey = remoteAlbum?.Release?.IndexerId.ToString();
|
request.RateLimitKey = remoteAlbum?.Release?.IndexerId.ToString();
|
||||||
|
request.AllowAutoRedirect = true;
|
||||||
|
|
||||||
var response = await RetryStrategy
|
var response = await RetryStrategy
|
||||||
.ExecuteAsync(static async (state, _) => await state._httpClient.GetAsync(state.request), (_httpClient, request))
|
.ExecuteAsync(static async (state, _) => await state._httpClient.GetAsync(state.request), (_httpClient, request))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue