GsaVersion should use HTTPS when in secure mode, for real.
diff --git a/src/com/google/enterprise/adaptor/GsaVersion.java b/src/com/google/enterprise/adaptor/GsaVersion.java
index fa534de..d9ae004 100644
--- a/src/com/google/enterprise/adaptor/GsaVersion.java
+++ b/src/com/google/enterprise/adaptor/GsaVersion.java
@@ -51,7 +51,7 @@
/* Requsts entire detailed version string and returns it. */
static GsaVersion get(String host, boolean securely) throws IOException {
String protocol = securely ? "https" : "http";
- URL url = new URL("http", host, "/sw_version.txt");
+ URL url = new URL(protocol, host, "/sw_version.txt");
log.log(Level.FINE, "about to ask GSA for {0}", url);
URLConnection conn = url.openConnection();
InputStream in = conn.getInputStream();