Fixed: Explicitly forbid redirects on Gazelle search requests

Fixes #1144
pull/1149/head
Qstick 2 years ago
parent 8797bb7d1c
commit b8ca28d955

@ -37,6 +37,8 @@ namespace NzbDrone.Core.Indexers.Gazelle
$"{APIUrl}?{searchParameters}",
HttpAccept.Json);
request.HttpRequest.AllowAutoRedirect = false;
yield return request;
}

@ -255,6 +255,8 @@ namespace NzbDrone.Core.Indexers.Definitions
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
request.HttpRequest.AllowAutoRedirect = false;
yield return request;
}

@ -194,6 +194,8 @@ namespace NzbDrone.Core.Indexers.Definitions
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
request.HttpRequest.AllowAutoRedirect = false;
yield return request;
}

@ -1480,6 +1480,8 @@ namespace NzbDrone.Core.Indexers.Definitions
var request = new IndexerRequest(searchUrl, HttpAccept.Html);
request.HttpRequest.AllowAutoRedirect = false;
yield return request;
}

Loading…
Cancel
Save