You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by li...@apache.org on 2009/10/21 02:11:27 UTC

svn commit: r827852 - /incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js

Author: lindner
Date: Wed Oct 21 00:11:26 2009
New Revision: 827852

URL: http://svn.apache.org/viewvc?rev=827852&view=rev
Log:
SHINDIG-1198 | Patch from Ivan Zuzak | Wrong construction of URIs in gadgets.rpc feature

Modified:
    incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js

Modified: incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js?rev=827852&r1=827851&r2=827852&view=diff
==============================================================================
--- incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js (original)
+++ incubator/shindig/trunk/features/src/main/javascript/features/rpc/rpc.js Wed Oct 21 00:11:26 2009
@@ -264,12 +264,12 @@
     }
     url = url.toLowerCase();
     if (url.indexOf("//") == 0) {
-      url = window.location.protocol + ":" + url;
+      url = window.location.protocol + url;
     }
     if (url.indexOf("http://") != 0 &&
         url.indexOf("https://") != 0) {
       // Assumed to be schemaless. Default to current protocol.
-      url = window.location.protocol + "://" + url;
+      url = window.location.protocol + "//" + url;
     }
     // At this point we guarantee that "://" is in the URL and defines
     // current protocol. Skip past this to search for host:port.