Skip to content

Commit

Permalink
working
Browse files Browse the repository at this point in the history
  • Loading branch information
Frigyes Bartha committed Jun 30, 2020
1 parent 93ad134 commit a32acf2
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions carelink.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,9 @@ function reqOptions(extra) {
'Accept-Encoding': 'gzip,deflate,sdch',
'Accept-Language': 'en-US,en;q=0.8'
},
checkServerIdentity: function (host, cert) {
/*if (host != cert.subject.CN)
return 'Incorrect server identity';// Return error in case of failed checking.*/
/*checkServerIdentity: function (host, cert) {
return undefined;
}
}*/
};
return _.merge(defaults, extra);
}
Expand All @@ -74,10 +72,6 @@ function checkResponseThen(fn) {
return function (err, response) {
err = err || responseAsError(response);

if (err) {
let x = 1;
}

fn.apply(this, [err].concat(Array.prototype.slice.call(arguments, 1)));
};
}
Expand Down

0 comments on commit a32acf2

Please sign in to comment.