Skip to content

Commit

Permalink
Write the post_body to OAuth2 PUT requests
Browse files Browse the repository at this point in the history
  • Loading branch information
broox committed Oct 15, 2013
1 parent 3fc9c63 commit e599d29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/oauth2.js
Expand Up @@ -129,7 +129,7 @@ exports.OAuth2.prototype._executeRequest= function( http_library, options, post_
callback(e);
});

if( options.method == 'POST' && post_body ) {
if( (options.method == 'POST' || options.method == 'PUT') && post_body ) {
request.write(post_body);
}
request.end();
Expand Down

0 comments on commit e599d29

Please sign in to comment.