]> WPIA git - gigi.git/blobdiff - src/org/cacert/gigi/Launcher.java
fix: do not follow redirects when doing http-pings (+testCase)
[gigi.git] / src / org / cacert / gigi / Launcher.java
index 7bf5bd119554387739d8b07a2647342cde3f82df..a7730adcc9d249350fa555affeb949b109aa919c 100644 (file)
@@ -2,6 +2,7 @@ package org.cacert.gigi;
 
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
+import java.net.HttpURLConnection;
 import java.net.InetSocketAddress;
 import java.security.GeneralSecurityException;
 import java.security.Key;
@@ -105,6 +106,7 @@ public class Launcher {
     public synchronized void boot() throws Exception {
         Locale.setDefault(Locale.ENGLISH);
         TimeZone.setDefault(TimeZone.getTimeZone("UTC"));
+        HttpURLConnection.setFollowRedirects(false);
 
         conf = GigiConfig.parse(System.in);
         ServerConstants.init(conf.getMainProps());