From 72648d0bfcfa2b6ed24ee4b15115b9c4e374d20d Mon Sep 17 00:00:00 2001 From: Chris Anderson Date: Tue, 14 Sep 2010 03:28:31 +0800 Subject: [PATCH] write the post_body before returning the request object --- lib/oauth.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/oauth.js b/lib/oauth.js index c705fe3..671462f 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -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; }