Skip to content

Commit

Permalink
FileTransfer - renamed parameter from 'debug' to 'trustAllHosts', and…
Browse files Browse the repository at this point in the history
… added doc for it in the comments.
  • Loading branch information
shazron committed Apr 6, 2012
1 parent 86e9322 commit 43895d5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/common/plugin/FileTransfer.js
Expand Up @@ -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;
Expand All @@ -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]);
};

/**
Expand Down

0 comments on commit 43895d5

Please sign in to comment.