@@ -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
{
@@ -602,9 +602,9 @@ public async Task PostAsync_CallMethod_EmptyContent(Configuration.Http.RemoteSer
602
602
public static IEnumerable < object [ ] > ExpectContinueVersion ( )
603
603
{
604
604
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 } ;
608
608
}
609
609
610
610
[ OuterLoop ( "Uses external servers" , typeof ( PlatformDetection ) , nameof ( PlatformDetection . LocalEchoServerIsNotAvailable ) ) ]
@@ -776,7 +776,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_Meth
776
776
{
777
777
var request = new HttpRequestMessage (
778
778
new HttpMethod ( method ) ,
779
- serverUri ) { Version = UseVersion } ;
779
+ serverUri )
780
+ { Version = UseVersion } ;
780
781
781
782
using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
782
783
{
@@ -802,7 +803,8 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithContent_Succes
802
803
{
803
804
var request = new HttpRequestMessage (
804
805
new HttpMethod ( method ) ,
805
- serverUri ) { Version = UseVersion } ;
806
+ serverUri )
807
+ { Version = UseVersion } ;
806
808
request . Content = new StringContent ( ExpectedContent ) ;
807
809
using ( HttpResponseMessage response = await client . SendAsync ( TestAsync , request ) )
808
810
{
@@ -981,6 +983,7 @@ public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttp_StatusCo
981
983
[ OuterLoop ( "Uses external servers" ) ]
982
984
[ Fact ]
983
985
[ ActiveIssue ( "https://github.com/dotnet/runtime/issues/55083" , TestPlatforms . Browser ) ]
986
+ [ ActiveIssue ( "https://github.com/dotnet/runtime/issues/110578" ) ]
984
987
public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttps_StatusCodeOK ( )
985
988
{
986
989
HttpClientHandler handler = CreateHttpClientHandler ( ) ;
@@ -1065,17 +1068,17 @@ public async Task GetAsync_MaxAutomaticRedirectionsNServerHops_ThrowsIfTooMany(i
1065
1068
handler . MaxAutomaticRedirections = maxHops ;
1066
1069
using ( HttpClient client = CreateHttpClient ( handler ) )
1067
1070
{
1068
- Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteHttp11Server . RedirectUriForDestinationUri (
1071
+ Task < HttpResponseMessage > t = client . GetAsync ( Configuration . Http . RemoteSecureHttp11Server . RedirectUriForDestinationUri (
1069
1072
statusCode : 302 ,
1070
- destinationUri : Configuration . Http . RemoteHttp11Server . EchoUri ,
1073
+ destinationUri : Configuration . Http . RemoteSecureHttp11Server . EchoUri ,
1071
1074
hops : hops ) ) ;
1072
1075
1073
1076
if ( hops <= maxHops )
1074
1077
{
1075
1078
using ( HttpResponseMessage response = await t )
1076
1079
{
1077
1080
Assert . Equal ( HttpStatusCode . OK , response . StatusCode ) ;
1078
- Assert . Equal ( Configuration . Http . RemoteEchoServer , response . RequestMessage . RequestUri ) ;
1081
+ Assert . Equal ( Configuration . Http . SecureRemoteEchoServer , response . RequestMessage . RequestUri ) ;
1079
1082
}
1080
1083
}
1081
1084
else
0 commit comments