Skip to content

Commit

Permalink
fix error with getFile()
Browse files Browse the repository at this point in the history
  • Loading branch information
fent committed Apr 3, 2012
1 parent f7b843a commit 2218014
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/dropbox-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ DropboxClient.prototype.createAccount = function(email, first_name, last_name
// user's Dropbox root.
DropboxClient.prototype.getFile = function(path, optargs, cb) {
if (typeof optargs == 'function') cb = optargs, optargs = {};
else if (!optargs) optargs = {};
var uri = CONTENT_API_URI + '/files/dropbox/' + escapePath(path) +
(optargs.rev ? '?rev=' + optargs.rev : '');
return this.get(uri, optargs, optargs.range, cb);
Expand Down

0 comments on commit 2218014

Please sign in to comment.