Skip to content

Commit

Permalink
more strict comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
yssk22 authored and ciaranj committed Oct 23, 2010
1 parent 6c27fa9 commit fedf577
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/oauth.js
Expand Up @@ -76,7 +76,8 @@ exports.OAuth.prototype._buildAuthorizationHeaders= function(orderedParameters)
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_") {
var m = orderedParameters[i][0].match('^oauth_');
if( m && m[0] === "oauth_") {
authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\",";
}
}
Expand Down

0 comments on commit fedf577

Please sign in to comment.