diff --git a/lib/oauth2.js b/lib/oauth2.js index 94ed662c..6937aa86 100644 --- a/lib/oauth2.js +++ b/lib/oauth2.js @@ -148,7 +148,7 @@ exports.OAuth2.prototype._executeRequest= function( http_library, options, post_ callback(e); }); - if( (options.method == 'POST' || options.method == 'PUT') && post_body ) { + if( (options.method == 'POST' || options.method == 'PUT' || options.method == 'PATCH') && post_body ) { request.write(post_body); } request.end();