Author: lryan
Date: Thu Sep 18 13:43:03 2008
New Revision: 696794
URL: http://svn.apache.org/viewvc?rev=696794&view=rev
Log:
Applied patch from Adam Winer for JIRA issue SHINDIG-596
Modified:
incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
Modified:
incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js?rev=696794&r1=696793&r2=696794&view=diff
==============================================================================
--- incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js
(original)
+++ incubator/shindig/trunk/features/opensocial-current/jsonrpccontainer.js Thu
Sep 18 13:43:03 2008
@@ -132,12 +132,15 @@
"POST_DATA" : gadgets.json.stringify(jsonBatchData)
};
- gadgets.io.makeNonProxiedRequest(
- this.baseUrl_ + "/rpc?st=" +
+ this.sendRequest(this.baseUrl_ + "/rpc?st=" +
encodeURIComponent(shindig.auth.getSecurityToken()),
sendResponse, makeRequestParams, "application/json");
};
+JsonRpcContainer.prototype.sendRequest = function(relativeUrl, callback,
params, contentType) {
+ gadgets.io.makeNonProxiedRequest(relativeUrl, callback, params, contentType);
+}
+
JsonRpcContainer.generateErrorResponse = function(result, requestObjects,
callback) {
var globalErrorCode =