Permalink
Browse files

Remove explict default value in createReadStream call

  • Loading branch information...
1 parent 0cf3930 commit e4fdc21260f464c975c2eabcde3ef2e74ad25390 @xmilliard committed Sep 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/oauth.js
View
@@ -394,7 +394,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
});
if( (method == "POST" || method =="PUT") && post_body != null && post_body != "" ) {
if(fromFile) {
- var rs = fs.createReadStream(post_body, { flags:'r' });
+ var rs = fs.createReadStream(post_body);
rs.pipe(request);
}else {
request.write(post_body);

0 comments on commit e4fdc21

Please sign in to comment.