mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 13:57:11 -04:00
Fixed: Follow redirects on Download when Indexer type allows
This commit is contained in:
parent
297ae0078d
commit
a4d95cc1d8
1 changed files with 4 additions and 1 deletions
|
@ -120,11 +120,14 @@ namespace NzbDrone.Core.Indexers
|
|||
requestBuilder.SetCookies(Cookies);
|
||||
}
|
||||
|
||||
var request = requestBuilder.Build();
|
||||
request.AllowAutoRedirect = FollowRedirect;
|
||||
|
||||
var downloadBytes = Array.Empty<byte>();
|
||||
|
||||
try
|
||||
{
|
||||
var response = await _httpClient.ExecuteAsync(requestBuilder.Build());
|
||||
var response = await _httpClient.ExecuteAsync(request);
|
||||
downloadBytes = response.ResponseData;
|
||||
}
|
||||
catch (Exception)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue