Permalink
Browse files

Ooops != != == ! ;)

  • Loading branch information...
1 parent 1c93463 commit 40cc690275c7406dcf9e3a359ffe2ec6797e64bd @ciaranj committed Jul 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/oauth.js
View
@@ -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])+"\",";
}
}

0 comments on commit 40cc690

Please sign in to comment.