Merge branch 'master' of http://github.com/coopernurse/node-oauth into merge_coopernurse

Conflicts:
	lib/oauth.js
This commit is contained in:
ciaranj 2010-10-31 19:59:54 +00:00
commit bfaa9c4e11

View File

@ -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
// should appear within the authorization header.
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])+"\",";
}
}