[elvystrac] r1943 - https supported now

  • From: elvys@xxxxxxxxxxxxxxxxxxxxxx
  • To: elvystrac@xxxxxxxxxxxxx
  • Date: Sun, 28 Feb 2010 19:25:07 +0100

Author: DavidK
Date: 2010-02-28 19:25:06 +0100 (Sun, 28 Feb 2010)
New Revision: 1943

Modified:
   
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/serverCommunication/ServerSideContext.java
Log:
https supported now

Modified: 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/serverCommunication/ServerSideContext.java
===================================================================
--- 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/serverCommunication/ServerSideContext.java
   2010-02-28 15:17:00 UTC (rev 1942)
+++ 
trunk/layouteditor/LayoutDesigner/src/com/elvys/applet/serverCommunication/ServerSideContext.java
   2010-02-28 18:25:06 UTC (rev 1943)
@@ -9,7 +9,6 @@
 import java.net.HttpURLConnection;
 import java.net.URL;
 import java.nio.charset.Charset;
-import java.util.ArrayList;
 import java.util.Arrays;
 import java.util.List;
 import java.util.Vector;
@@ -101,11 +100,12 @@
                // set host
 
                String hostAddr = applet.getCodeBase().getHost();
+               String protocol = applet.getCodeBase().getProtocol();
                Integer port = applet.getCodeBase().getPort();
-               instance.host = "http://"; + hostAddr + ":" + port;
+               instance.host = protocol+"://" + hostAddr + ":" + port;
 
                // for debugging: 
-               //instance.host = "http://localhost:8080/";;
+               // instance.host = "http://localhost:8080/";;
 
        }
 


Other related posts:

  • » [elvystrac] r1943 - https supported now - elvys