From b820bdb2111ba356bc4c3750b5476a05e9515ac6 Mon Sep 17 00:00:00 2001 From: Blechhirn Date: Mon, 30 Nov 2015 15:39:14 +0100 Subject: [PATCH] Allow the empty string for oauth_token. --- lib/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth.js b/lib/oauth.js index 50dccf99..91f54695 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -265,7 +265,7 @@ exports.OAuth.prototype._prepareParameters= function( oauth_token, oauth_token_s "oauth_consumer_key": this._consumerKey }; - if( oauth_token ) { + if( oauth_token != null ) { oauthParameters["oauth_token"]= oauth_token; }