write the post_body before returning the request object

This commit is contained in:
Chris Anderson 2010-09-14 03:28:31 +08:00 committed by Ciaran Jessup
parent 2fa7f4ecb7
commit 72648d0bfc

View File

@ -250,6 +250,9 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
request.end(); request.end();
} }
else { else {
if( method == "POST" && post_body != null && post_body != "" ) {
request.write(post_body);
}
return request; return request;
} }