Merge branch 'master' of http://github.com/coopernurse/node-oauth into merge_coopernurse
Conflicts: lib/oauth.js
This commit is contained in:
commit
bfaa9c4e11
@ -77,7 +77,7 @@ exports.OAuth.prototype._buildAuthorizationHeaders= function(orderedParameters)
|
|||||||
// Whilst the all the parameters should be included within the signature, only the oauth_ arguments
|
// Whilst the all the parameters should be included within the signature, only the oauth_ arguments
|
||||||
// should appear within the authorization header.
|
// should appear within the authorization header.
|
||||||
var m = orderedParameters[i][0].match('^oauth_');
|
var m = orderedParameters[i][0].match('^oauth_');
|
||||||
if( m && m[0] === "oauth_") {
|
if( m && ( m[0] === "oauth_" || m[0] === 'scope' ) ) {
|
||||||
authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\",";
|
authHeader+= this._encodeData(orderedParameters[i][0])+"=\""+ this._encodeData(orderedParameters[i][1])+"\",";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user