more strict comparison.
This commit is contained in:
parent
6c27fa9ead
commit
fedf5776e7
|
@ -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])+"\",";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue