Merge pull request #240 from coolaj86/patch-2

remove dead code (bogus call to createCredentials)
This commit is contained in:
Ciaran Jessup 2015-05-15 20:04:59 +01:00
commit 2ecf53e8ec
1 changed files with 0 additions and 1 deletions

View File

@ -60,7 +60,6 @@ exports.OAuth2.prototype._chooseHttpLibrary= function( parsedUrl ) {
exports.OAuth2.prototype._request= function(method, url, headers, post_body, access_token, callback) {
var creds = crypto.createCredentials({ });
var parsedUrl= URL.parse( url, true );
if( parsedUrl.protocol == "https:" && !parsedUrl.port ) {
parsedUrl.port= 443;