Author: lryan Date: Tue Sep 8 17:51:15 2009 New Revision: 812596 URL: http://svn.apache.org/viewvc?rev=812596&view=rev Log: Allow the JSON-RPC transport for OSAPI to register schemeless URIs
Modified: incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js Modified: incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js?rev=812596&r1=812595&r2=812596&view=diff ============================================================================== --- incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js (original) +++ incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js Tue Sep 8 17:51:15 2009 @@ -74,7 +74,8 @@ // Iterate over the defined services, extract the http endpoints and // create a transport per-endpoint for (var endpointName in services) if (services.hasOwnProperty(endpointName)) { - if (endpointName.indexOf("http") == 0) { + if (endpointName.indexOf("http") == 0 || + endpointName.indexOf("//") == 0) { // Expand the host & append the security token var endpointUrl = endpointName.replace("%host%", document.location.host); var transport = { name : endpointUrl, "execute" : execute };