File tree 1 file changed +2
-2
lines changed
client/src/test/java/org/asynchttpclient
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -91,12 +91,12 @@ public void runAllSequentiallyBecauseNotThreadSafe() throws Exception {
91
91
public void redirected302Test () throws Exception {
92
92
isSet .getAndSet (false );
93
93
try (AsyncHttpClient c = asyncHttpClient ()) {
94
- Response response = c .prepareGet (getTargetUrl ()).setFollowRedirect (true ).setHeader ("X-redirect" , "http ://www.microsoft.com/" ).execute ().get ();
94
+ Response response = c .prepareGet (getTargetUrl ()).setFollowRedirect (true ).setHeader ("X-redirect" , "https ://www.microsoft.com/" ).execute ().get ();
95
95
96
96
assertNotNull (response );
97
97
assertEquals (response .getStatusCode (), 200 );
98
98
99
- String anyMicrosoftPage = "http ://www.microsoft.com[^:]*:80 " ;
99
+ String anyMicrosoftPage = "https ://www.microsoft.com[^:]*:443 " ;
100
100
String baseUrl = getBaseUrl (response .getUri ());
101
101
102
102
assertTrue (baseUrl .matches (anyMicrosoftPage ), "response does not show redirection to " + anyMicrosoftPage );
You can’t perform that action at this time.
0 commit comments