test/jdk/java/net/httpclient/BasicRedirectTest.java
branchhttp-client-branch
changeset 56771 73a6534bce94
parent 56451 9585061fdb04
child 56795 03ece2518428
equal deleted inserted replaced
56770:f1626bc0a010 56771:73a6534bce94
   226         httpsURI = "https://" + httpsTestServer.serverAuthority() + "/https1/same/redirect";
   226         httpsURI = "https://" + httpsTestServer.serverAuthority() + "/https1/same/redirect";
   227 
   227 
   228         http2TestServer = HttpTestServer.of(new Http2TestServer("localhost", false, 0));
   228         http2TestServer = HttpTestServer.of(new Http2TestServer("localhost", false, 0));
   229         http2TestServer.addHandler(new BasicHttpRedirectHandler(), "/http2/same/");
   229         http2TestServer.addHandler(new BasicHttpRedirectHandler(), "/http2/same/");
   230         http2URI = "http://" + http2TestServer.serverAuthority() + "/http2/same/redirect";
   230         http2URI = "http://" + http2TestServer.serverAuthority() + "/http2/same/redirect";
   231         https2TestServer = HttpTestServer.of(new Http2TestServer("localhost", true, 0));
   231         https2TestServer = HttpTestServer.of(new Http2TestServer("localhost", true, sslContext));
   232         https2TestServer.addHandler(new BasicHttpRedirectHandler(), "/https2/same/");
   232         https2TestServer.addHandler(new BasicHttpRedirectHandler(), "/https2/same/");
   233         https2URI = "https://" + https2TestServer.serverAuthority() + "/https2/same/redirect";
   233         https2URI = "https://" + https2TestServer.serverAuthority() + "/https2/same/redirect";
   234 
   234 
   235 
   235 
   236         // HTTP to HTTPS redirect handler
   236         // HTTP to HTTPS redirect handler