From 7c82ef083665ea636d790a792283a9479a959d63 Mon Sep 17 00:00:00 2001 From: Vlad Filippov Date: Thu, 16 Jul 2020 17:16:31 -0400 Subject: [PATCH] Improve 'protocol' field check to make it consistent with the rest of the code (#960) --- lib/StripeResource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/StripeResource.js b/lib/StripeResource.js index efc42a0b00..036812dc71 100644 --- a/lib/StripeResource.js +++ b/lib/StripeResource.js @@ -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;