diff --git a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.tvOS.cs b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.tvOS.cs index 86b2eacbb1845f..168f03e80bdf3e 100644 --- a/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.tvOS.cs +++ b/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.NtAuth.tvOS.cs @@ -12,8 +12,8 @@ internal static partial class AuthenticationHelper private static Task InnerSendAsync(HttpRequestMessage request, Uri authUri, bool async, ICredentials credentials, bool isProxyAuth, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken) { return isProxyAuth ? - SendWithProxyAuthAsync(request, authUri, async, credentials, true, connectionPool, cancellationToken).AsTask() : - SendWithRequestAuthAsync(request, async, credentials, true, connectionPool, cancellationToken).AsTask(); + SendWithProxyAuthAsync(request, authUri, async, credentials, false, connectionPool, cancellationToken).AsTask() : + SendWithRequestAuthAsync(request, async, credentials, false, connectionPool, cancellationToken).AsTask(); } public static Task SendWithNtProxyAuthAsync(HttpRequestMessage request, Uri proxyUri, bool async, ICredentials proxyCredentials, HttpConnection connection, HttpConnectionPool connectionPool, CancellationToken cancellationToken) diff --git a/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs b/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs index 728b2d96bd1b70..b6699725f6ebc4 100644 --- a/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs +++ b/src/libraries/System.Net.Requests/tests/HttpWebRequestTest.cs @@ -1459,6 +1459,7 @@ await LoopbackServer.CreateClientAndServerAsync(async uri => [InlineData(true)] [InlineData(false)] [ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/56798", TestPlatforms.tvOS)] public async Task GetResponseAsync_UseDefaultCredentials_ExpectSuccess(bool useSsl) { var options = new LoopbackServer.Options { UseSsl = useSsl }; @@ -1499,6 +1500,7 @@ await LoopbackServer.CreateClientAndServerAsync(async uri => [InlineData(true)] [InlineData(false)] [ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)] + [ActiveIssue("https://github.com/dotnet/runtime/issues/56798", TestPlatforms.tvOS)] public async Task HaveResponse_GetResponseAsync_ExpectTrue(bool useSsl) { var options = new LoopbackServer.Options { UseSsl = useSsl }; @@ -1991,8 +1993,7 @@ private static async Task VerifyResponse(string expectedResponse, Task }); } - [Fact] - [ActiveIssue("https://github.com/dotnet/runtime/issues/37087", TestPlatforms.Android)] + [ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsBinaryFormatterSupported))] public async Task HttpWebResponse_Serialize_ExpectedResult() { await LoopbackServer.CreateServerAsync(async (server, url) => diff --git a/src/libraries/tests.proj b/src/libraries/tests.proj index 3144580dc68d3e..645f62c86df819 100644 --- a/src/libraries/tests.proj +++ b/src/libraries/tests.proj @@ -185,8 +185,6 @@ - -