|
|
@ -147,6 +147,11 @@ namespace NzbDrone.Common.Test.Http
|
|
|
|
[Test]
|
|
|
|
[Test]
|
|
|
|
public void should_follow_redirects_to_https()
|
|
|
|
public void should_follow_redirects_to_https()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (typeof(TDispatcher) == typeof(ManagedHttpDispatcher) && PlatformInfo.IsMono)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
Assert.Ignore("Will fail on tls1.2 via managed dispatcher, ignore.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var request = new HttpRequestBuilder($"http://{_httpBinHost}/redirect-to")
|
|
|
|
var request = new HttpRequestBuilder($"http://{_httpBinHost}/redirect-to")
|
|
|
|
.AddQueryParam("url", $"https://sonarr.tv/")
|
|
|
|
.AddQueryParam("url", $"https://sonarr.tv/")
|
|
|
|
.Build();
|
|
|
|
.Build();
|
|
|
|