incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shaz...@apache.org
Subject git commit: FileTransfer - renamed parameter from 'debug' to 'trustAllHosts', and added doc for it in the comments.
Date Fri, 06 Apr 2012 00:43:47 GMT
Updated Branches:
  refs/heads/master 86e93225c -> 43895d588


FileTransfer - renamed parameter from 'debug' to 'trustAllHosts', and added doc for it in
the comments.


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/commit/43895d58
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/tree/43895d58
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/diff/43895d58

Branch: refs/heads/master
Commit: 43895d588ef51cdccae09e9ea90d119d63aaad0d
Parents: 86e9322
Author: Shazron Abdullah <shazron@gmail.com>
Authored: Wed Apr 4 15:00:45 2012 -0700
Committer: shazron <shazron@gmail.com>
Committed: Thu Apr 5 17:43:11 2012 -0700

----------------------------------------------------------------------
 lib/common/plugin/FileTransfer.js |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-js/blob/43895d58/lib/common/plugin/FileTransfer.js
----------------------------------------------------------------------
diff --git a/lib/common/plugin/FileTransfer.js b/lib/common/plugin/FileTransfer.js
index a417f5c..6749a80 100644
--- a/lib/common/plugin/FileTransfer.js
+++ b/lib/common/plugin/FileTransfer.js
@@ -14,8 +14,9 @@ var FileTransfer = function() {};
 * @param successCallback (Function}  Callback to be invoked when upload has completed
 * @param errorCallback {Function}    Callback to be invoked upon error
 * @param options {FileUploadOptions} Optional parameters such as file name and mimetype
+* @param trustAllHosts {Boolean} Optional trust all hosts (e.g. for self-signed certs), defaults
to false
 */
-FileTransfer.prototype.upload = function(filePath, server, successCallback, errorCallback,
options, debug) {
+FileTransfer.prototype.upload = function(filePath, server, successCallback, errorCallback,
options, trustAllHosts) {
     // check for options
     var fileKey = null;
     var fileName = null;
@@ -37,7 +38,7 @@ FileTransfer.prototype.upload = function(filePath, server, successCallback,
erro
         }
     }
 
-    exec(successCallback, errorCallback, 'FileTransfer', 'upload', [filePath, server, fileKey,
fileName, mimeType, params, debug, chunkedMode]);
+    exec(successCallback, errorCallback, 'FileTransfer', 'upload', [filePath, server, fileKey,
fileName, mimeType, params, trustAllHosts, chunkedMode]);
 };
 
 /**


Mime
View raw message