mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-04-24 22:07:32 -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);
|
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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue