@@ -70,7 +70,7 @@ public async Task UseDefaultCredentials_SetToFalseAndServerNeedsAuth_StatusCodeU
7070 handler . UseDefaultCredentials = false ;
7171 using ( HttpClient client = CreateHttpClient ( handler ) )
7272 {
73- Uri uri = Configuration . Http . RemoteHttp11Server . NegotiateAuthUriForDefaultCreds ;
73+ Uri uri = Configuration . Http . RemoteSecureHttp11Server . NegotiateAuthUriForDefaultCreds ;
7474 _output . WriteLine ( "Uri: {0}" , uri ) ;
7575 using ( HttpResponseMessage response = await client . GetAsync ( uri ) )
7676 {
@@ -602,9 +602,9 @@ public async Task PostAsync_CallMethod_EmptyContent(Configuration.Http.RemoteSer
602602 public static IEnumerable < object [ ] > ExpectContinueVersion ( )
603603 {
604604 return
605- from expect in new bool ? [ ] { true , false , null }
606- from version in new Version [ ] { new Version ( 1 , 0 ) , new Version ( 1 , 1 ) , new Version ( 2 , 0 ) }
607- select new object [ ] { expect , version } ;
605+ from expect in new bool ? [ ] { true , false , null }
606+ from version in new Version [ ] { new Version ( 1 , 0 ) , new Version ( 1 , 1 ) , new Version ( 2 , 0 ) }
607+ select new object [ ] { expect , version } ;
608608 }
609609
610610 [ OuterLoop ( "Uses external servers" , typeof ( PlatformDetection ) , nameof ( PlatformDetection . LocalEchoServerIsNotAvailable ) ) ]
@@ -776,7 +776,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_Meth
776776 {
777777 var request = new HttpRequestMessage (
778778 new HttpMethod ( method ) ,
779- serverUri ) { Version = UseVersion } ;
779+ serverUri )
780+ { Version = UseVersion } ;
780781
781782 using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
782783 {
@@ -802,7 +803,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithContent_Succes
802803 {
803804 var request = new HttpRequestMessage (
804805 new HttpMethod ( method ) ,
805- serverUri ) { Version = UseVersion } ;
806+ serverUri )
807+ { Version = UseVersion } ;
806808 request . Content = new StringContent ( ExpectedContent ) ;
807809 using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
808810 {
@@ -981,6 +983,7 @@ public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttp_StatusCo
981983 [ OuterLoop ( "Uses external servers" ) ]
982984 [ Fact ]
983985 [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/55083" , TestPlatforms . Browser ) ]
986+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/110578" ) ]
984987 public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttps_StatusCodeOK ( )
985988 {
986989 HttpClientHandler handler = CreateHttpClientHandler ( ) ;
@@ -1065,17 +1068,17 @@ public async Task GetAsync_MaxAutomaticRedirectionsNServerHops_ThrowsIfTooMany(i
10651068 handler . MaxAutomaticRedirections = maxHops ;
10661069 using ( HttpClient client = CreateHttpClient ( handler ) )
10671070 {
1068- Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteHttp11Server . RedirectUriForDestinationUri (
1071+ Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteSecureHttp11Server . RedirectUriForDestinationUri (
10691072 statusCode : 302 ,
1070- destinationUri : Configuration . Http . RemoteHttp11Server . EchoUri ,
1073+ destinationUri : Configuration . Http . RemoteSecureHttp11Server . EchoUri ,
10711074 hops : hops ) ) ;
10721075
10731076 if ( hops <= maxHops )
10741077 {
10751078 using ( HttpResponseMessage response = await t )
10761079 {
10771080 Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
1078- Assert . Equal ( Configuration . Http . RemoteEchoServer , response . RequestMessage . RequestUri ) ;
1081+ Assert . Equal ( Configuration . Http . SecureRemoteEchoServer , response . RequestMessage . RequestUri ) ;
10791082 }
10801083 }
10811084 else
0 commit comments