File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
client/src/test/java/org/asynchttpclient Expand file tree Collapse file tree 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 {
9191 public void redirected302Test () throws Exception {
9292 isSet .getAndSet (false );
9393 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 ();
9595
9696 assertNotNull (response );
9797 assertEquals (response .getStatusCode (), 200 );
9898
99- String anyMicrosoftPage = "http ://www.microsoft.com[^:]*:80 " ;
99+ String anyMicrosoftPage = "https ://www.microsoft.com[^:]*:443 " ;
100100 String baseUrl = getBaseUrl (response .getUri ());
101101
102102 assertTrue (baseUrl .matches (anyMicrosoftPage ), "response does not show redirection to " + anyMicrosoftPage );
You can’t perform that action at this time.
0 commit comments