Fixed a load of test failures I'd somehow missed ?!?!! (Thanks go to @dshaw for noticing)

This commit is contained in:
ciaranj
2010-05-18 13:57:01 +01:00
parent 24bcc8c712
commit 341136d554
4 changed files with 17 additions and 13 deletions

@ -207,6 +207,7 @@ exports.OAuth.prototype._performSecureRequest= function( oauth_token, oauth_toke
headers["Content-Type"]= "application/x-www-form-urlencoded"
var path;
if( !parsedUrl.pathname || parsedUrl.pathname == "" ) parsedUrl.pathname ="/";
if( parsedUrl.query ) path= parsedUrl.pathname + "?"+ parsedUrl.query ;
else path= parsedUrl.pathname;
@ -243,7 +244,6 @@ exports.OAuth.prototype.getOauthAccessToken= function(oauth_token, oauth_token_s
}
})
}
exports.OAuth.prototype.getProtectedResource= function(url, method, oauth_token, oauth_token_secret, callback) {
this._performSecureRequest( oauth_token, oauth_token_secret, method, url, null, callback );
}