Skip to content

Commit

Permalink
write the post_body before returning the request object
Browse files Browse the repository at this point in the history
  • Loading branch information
jchris authored and ciaranj committed Sep 20, 2010
1 parent 2fa7f4e commit 72648d0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/oauth.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,9 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
request.end();
}
else {
if( method == "POST" && post_body != null && post_body != "" ) {
request.write(post_body);
}
return request;
}

Expand Down

0 comments on commit 72648d0

Please sign in to comment.