more strict comparison.
This commit is contained in:
		| @ -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])+"\","; | ||||
|      } | ||||
|   } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user