Permalink
Browse files

[fix] calls `req.end()` on `getFileStream()`

  • Loading branch information...
1 parent 4fbbd14 commit 4cb2c178d23a655d99807c5257aff6188baa9657 @fent fent committed Mar 28, 2012
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/dropbox-node.js
View
@@ -99,9 +99,11 @@ DropboxClient.prototype.getFile = function(path, optargs, cb) {
DropboxClient.prototype.getFileStream = function(path, optargs) {
optargs = optargs || {};
path = escapePath(path);
- return this.oauth.get(CONTENT_API_URI + '/files/dropbox/' + path
- , optargs.token || this.access_token
- , optargs.secret || this.access_token_secret);
+ var req = this.oauth.get(CONTENT_API_URI + '/files/dropbox/' + path
+ , optargs.token || this.access_token
+ , optargs.secret || this.access_token_secret);
+ req.end();
+ return req;
}

0 comments on commit 4cb2c17

Please sign in to comment.