Merge pull request #191 from tedgoddard/patch-1

support for use_strict
This commit is contained in:
Ciaran Jessup 2014-05-21 19:20:46 +01:00
commit 96abec7c28
1 changed files with 3 additions and 3 deletions

View File

@ -166,8 +166,8 @@ exports.OAuth.prototype._sortRequestParams= function(argument_pairs) {
return argument_pairs;
}
exports.OAuth.prototype._normaliseRequestParams= function(arguments) {
var argument_pairs= this._makeArrayOfArgumentsHash(arguments);
exports.OAuth.prototype._normaliseRequestParams= function(args) {
var argument_pairs= this._makeArrayOfArgumentsHash(args);
// First encode them #3.4.1.3.2 .1
for(var i=0;i<argument_pairs.length;i++) {
argument_pairs[i][0]= this._encodeData( argument_pairs[i][0] );
@ -372,7 +372,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
// allow this behaviour.
var allowEarlyClose= OAuthUtils.isAnEarlyCloseHost( parsedUrl.hostname );
var callbackCalled= false;
function passBackControl( response ) {
var passBackControl = function( response ) {
if(!callbackCalled) {
callbackCalled= true;
if ( response.statusCode >= 200 && response.statusCode <= 299 ) {