diff --git a/lib/oauth.js b/lib/oauth.js index 50dccf99..ac112da7 100644 --- a/lib/oauth.js +++ b/lib/oauth.js @@ -170,6 +170,15 @@ exports.OAuth.prototype._sortRequestParams= function(argument_pairs) { exports.OAuth.prototype._normaliseRequestParams= function(args) { var argument_pairs= this._makeArrayOfArgumentsHash(args); + + // Handle multiple query params of the same name. + // We need to replace 'param[N]' with just 'param'. + for (var i=0; i