You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by lr...@apache.org on 2009/09/08 19:51:15 UTC
svn commit: r812596 -
/incubator/shindig/trunk/features/src/main/javascript/features/osapi/jsonrpctransport.js
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 };