From 40cc690275c7406dcf9e3a359ffe2ec6797e64bd Mon Sep 17 00:00:00 2001 From: ciaranj Date: Mon, 19 Jul 2010 00:29:17 +0100 Subject: [PATCH] Ooops != != == ! ;) --- lib/oauth.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth.js b/lib/oauth.js index 72e0f9f..607e0c7 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -196,7 +196,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke for( var i= 0 ; i < orderedParameters.length; i++) { // Whilst the all the parameters should be included within the signature, only the oauth_ arguments // should appear within the authorization header. - if( orderedParameters[i][0].match('^oauth_') != "oauth_") { + if( orderedParameters[i][0].match('^oauth_') == "oauth_") { authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\","; } }