|
|
@ -246,7 +246,7 @@ namespace NzbDrone.Common.Test.Http
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_throw_on_too_many_redirects()
|
|
|
|
public void should_throw_on_too_many_redirects()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
var request = new HttpRequest($"http://{_httpBinHost}/redirect/4");
|
|
|
|
var request = new HttpRequest($"http://{_httpBinHost}/redirect/6");
|
|
|
|
request.AllowAutoRedirect = true;
|
|
|
|
request.AllowAutoRedirect = true;
|
|
|
|
|
|
|
|
|
|
|
|
Assert.Throws<WebException>(() => Subject.Get(request));
|
|
|
|
Assert.Throws<WebException>(() => Subject.Get(request));
|
|
|
|