Skip to content

Commit

Permalink
Improve 'protocol' field check to make it consistent with the rest of…
Browse files Browse the repository at this point in the history
… the code (#960)
  • Loading branch information
vladikoff committed Jul 16, 2020
1 parent 1b84a26 commit 7c82ef0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/StripeResource.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ StripeResource.prototype = {
: this._stripe.getApiField('timeout');

const isInsecureConnection =
this._stripe.getApiField('protocol') == 'http';
this._stripe.getApiField('protocol') === 'http';
let agent = this._stripe.getApiField('agent');
if (agent == null) {
agent = isInsecureConnection ? defaultHttpAgent : defaultHttpsAgent;
Expand Down

0 comments on commit 7c82ef0

Please sign in to comment.