From fb1d68c04a6d15552b3490e4fe83ba64a3114040 Mon Sep 17 00:00:00 2001 From: Alex Nuccio Date: Wed, 30 Mar 2016 11:34:50 -0700 Subject: [PATCH] added PATCH to conditions for adding a post_body to requests in _executeRequest --- lib/oauth2.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();