Skip to content
This repository has been archived by the owner on Jul 12, 2019. It is now read-only.

Allow to disable SSL certificate check #110

Merged
merged 3 commits into from
Sep 11, 2018

Conversation

eliangcs
Copy link
Member

@eliangcs eliangcs commented Sep 10, 2018

Addresses https://github.com/zapier/zapier/issues/18677, where the "Disable SSL Certificate Checks" option is not honored by z.request.

This PR adds a new before middleware disableSSLCertCheck to the z.request client if a user checks the "Disable SSL Certificate Checks" in their settings (https://zapier.com/app/settings/advanced).

Copy link
Contributor

@BrunoBernardino BrunoBernardino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great!

@@ -41,6 +42,11 @@ const createAppRequestClient = (input, options) => {

httpBefores.push(addQueryParams);

const verify = _.get(input, '_zapier.event.verify');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd only #suggest renaming this to verifySSL, verifySsl, or veryifyCertificate.

@eliangcs eliangcs merged commit 4bd198f into master Sep 11, 2018
@eliangcs eliangcs deleted the allow-to-disable-ssl-cert-check branch September 11, 2018 07:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants