@@ -70,7 +70,7 @@ public async Task UseDefaultCredentials_SetToFalseAndServerNeedsAuth_StatusCodeU
70
70
handler . UseDefaultCredentials = false ;
71
71
using ( HttpClient client = CreateHttpClient ( handler ) )
72
72
{
73
- Uri uri = Configuration . Http . RemoteHttp11Server . NegotiateAuthUriForDefaultCreds ;
73
+ Uri uri = Configuration . Http . RemoteSecureHttp11Server . NegotiateAuthUriForDefaultCreds ;
74
74
_output . WriteLine ( "Uri: {0}" , uri ) ;
75
75
using ( HttpResponseMessage response = await client . GetAsync ( uri ) )
76
76
{
@@ -600,9 +600,9 @@ public async Task PostAsync_CallMethod_EmptyContent(Configuration.Http.RemoteSer
600
600
public static IEnumerable < object [ ] > ExpectContinueVersion ( )
601
601
{
602
602
return
603
- from expect in new bool ? [ ] { true , false , null }
604
- from version in new Version [ ] { new Version ( 1 , 0 ) , new Version ( 1 , 1 ) , new Version ( 2 , 0 ) }
605
- select new object [ ] { expect , version } ;
603
+ from expect in new bool ? [ ] { true , false , null }
604
+ from version in new Version [ ] { new Version ( 1 , 0 ) , new Version ( 1 , 1 ) , new Version ( 2 , 0 ) }
605
+ select new object [ ] { expect , version } ;
606
606
}
607
607
608
608
[ OuterLoop ( "Uses external servers" , typeof ( PlatformDetection ) , nameof ( PlatformDetection . LocalEchoServerIsNotAvailable ) ) ]
@@ -780,7 +780,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_Meth
780
780
{
781
781
var request = new HttpRequestMessage (
782
782
new HttpMethod ( method ) ,
783
- serverUri ) { Version = UseVersion } ;
783
+ serverUri )
784
+ { Version = UseVersion } ;
784
785
785
786
using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
786
787
{
@@ -806,7 +807,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithContent_Succes
806
807
{
807
808
var request = new HttpRequestMessage (
808
809
new HttpMethod ( method ) ,
809
- serverUri ) { Version = UseVersion } ;
810
+ serverUri )
811
+ { Version = UseVersion } ;
810
812
request . Content = new StringContent ( ExpectedContent ) ;
811
813
using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
812
814
{
@@ -985,6 +987,7 @@ public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttp_StatusCo
985
987
[ OuterLoop ( "Uses external servers" ) ]
986
988
[ Fact ]
987
989
[ ActiveIssue ( "https://github.com/dotnet/runtime/issues/55083" , TestPlatforms . Browser ) ]
990
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/110578" ) ]
988
991
public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttps_StatusCodeOK ( )
989
992
{
990
993
HttpClientHandler handler = CreateHttpClientHandler ( ) ;
@@ -1069,17 +1072,17 @@ public async Task GetAsync_MaxAutomaticRedirectionsNServerHops_ThrowsIfTooMany(i
1069
1072
handler . MaxAutomaticRedirections = maxHops ;
1070
1073
using ( HttpClient client = CreateHttpClient ( handler ) )
1071
1074
{
1072
- Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteHttp11Server . RedirectUriForDestinationUri (
1075
+ Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteSecureHttp11Server . RedirectUriForDestinationUri (
1073
1076
statusCode : 302 ,
1074
- destinationUri : Configuration . Http . RemoteHttp11Server . EchoUri ,
1077
+ destinationUri : Configuration . Http . RemoteSecureHttp11Server . EchoUri ,
1075
1078
hops : hops ) ) ;
1076
1079
1077
1080
if ( hops <= maxHops )
1078
1081
{
1079
1082
using ( HttpResponseMessage response = await t )
1080
1083
{
1081
1084
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
1082
- Assert . Equal ( Configuration . Http . RemoteEchoServer , response . RequestMessage . RequestUri ) ;
1085
+ Assert . Equal ( Configuration . Http . SecureRemoteEchoServer , response . RequestMessage . RequestUri ) ;
1083
1086
}
1084
1087
}
1085
1088
else
0 commit comments