From 7e6ec654ceb0a94449364340b6fad77ba92a3e20 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sat, 8 Jul 2017 08:08:47 -0400 Subject: [PATCH] Fixed: Follow 301 redirects when fetching torrents (#21) Fixed: Follow 301 redirects when fetching torrents --- src/NzbDrone.Core/Download/TorrentClientBase.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Download/TorrentClientBase.cs b/src/NzbDrone.Core/Download/TorrentClientBase.cs index 61986ce8f..d48fc6e9c 100644 --- a/src/NzbDrone.Core/Download/TorrentClientBase.cs +++ b/src/NzbDrone.Core/Download/TorrentClientBase.cs @@ -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");