mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 21:43:33 -07:00
Fixed: Follow 301 redirects when fetching torrents (#21)
Fixed: Follow 301 redirects when fetching torrents
This commit is contained in:
parent
572586063e
commit
7e6ec654ce
1 changed files with 3 additions and 1 deletions
|
@ -133,7 +133,9 @@ namespace NzbDrone.Core.Download
|
|||
|
||||
var response = _httpClient.Get(request);
|
||||
|
||||
if (response.StatusCode == HttpStatusCode.SeeOther || response.StatusCode == HttpStatusCode.Found)
|
||||
if (response.StatusCode == HttpStatusCode.MovedPermanently ||
|
||||
response.StatusCode == HttpStatusCode.Found ||
|
||||
response.StatusCode == HttpStatusCode.SeeOther)
|
||||
{
|
||||
var locationHeader = response.Headers.GetSingleValue("Location");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue