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