]> WPIA git - gigi.git/blobdiff - tests/org/cacert/gigi/TestCrossDomainAccess.java
fix: generate correct urls to static resources
[gigi.git] / tests / org / cacert / gigi / TestCrossDomainAccess.java
index e2a600704b5087f642c36a974f6732e6c344a94a..ee3584fd41f7cbd6281e9e00e22498fea7d4485d 100644 (file)
@@ -53,7 +53,7 @@ public class TestCrossDomainAccess extends ManagedTest {
         c.setLoginEnabled(true);
         await(c.issue(null, "2y", u));
 
-        URLConnection con = new URL("https://" + ServerConstants.getSecureHostNamePort()).openConnection();
+        URLConnection con = new URL("https://" + ServerConstants.getSecureHostNamePortSecure()).openConnection();
         authenticateClientCert(pk, c.cert(), (HttpURLConnection) con);
         con.setRequestProperty("Origin", "https://" + ServerConstants.getWwwHostNamePortSecure());
         String contains = IOUtils.readURL(con);