mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
Fixed: Follow redirects on Download when Indexer type allows
This commit is contained in:
@@ -120,11 +120,14 @@ namespace NzbDrone.Core.Indexers
|
|||||||
requestBuilder.SetCookies(Cookies);
|
requestBuilder.SetCookies(Cookies);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var request = requestBuilder.Build();
|
||||||
|
request.AllowAutoRedirect = FollowRedirect;
|
||||||
|
|
||||||
var downloadBytes = Array.Empty<byte>();
|
var downloadBytes = Array.Empty<byte>();
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
var response = await _httpClient.ExecuteAsync(requestBuilder.Build());
|
var response = await _httpClient.ExecuteAsync(request);
|
||||||
downloadBytes = response.ResponseData;
|
downloadBytes = response.ResponseData;
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
|
Reference in New Issue
Block a user