Write the post_body to OAuth2 PUT requests
This commit is contained in:
parent
3fc9c63a06
commit
e599d29787
|
@ -129,7 +129,7 @@ exports.OAuth2.prototype._executeRequest= function( http_library, options, post_
|
||||||
callback(e);
|
callback(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
if( options.method == 'POST' && post_body ) {
|
if( (options.method == 'POST' || options.method == 'PUT') && post_body ) {
|
||||||
request.write(post_body);
|
request.write(post_body);
|
||||||
}
|
}
|
||||||
request.end();
|
request.end();
|
||||||
|
|
Loading…
Reference in New Issue