Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass down ssl.verify to Faraday connection #1253

Merged
merged 2 commits into from Jun 2, 2020
Merged

Pass down ssl.verify to Faraday connection #1253

merged 2 commits into from Jun 2, 2020

Conversation

tjwallace
Copy link

This ensures adapters properly set SSL related options.

Adapters like Typhoeus only check options[:ssl][:verify].

@indigok indigok requested a review from tarebyte May 21, 2020 18:39
Copy link
Member

@tarebyte tarebyte left a comment

Choose a reason for hiding this comment

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

Looking good!

Comment on lines 178 to 180
conn_opts[:ssl] ||= {}
conn_opts[:ssl][:verify_mode] ||= 0 if conn_opts.dig(:ssl, :verify) == false
conn_opts[:ssl][:verify_mode] ||= @ssl_verify_mode if @ssl_verify_mode
Copy link
Member

Choose a reason for hiding this comment

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

This feels pretty compact, and kind of difficult to read.

Would you mind putting it back to the same formatting as the original?

Copy link
Author

Choose a reason for hiding this comment

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

How about this: fe4a418?

Jeff Wallace added 2 commits June 2, 2020 09:25
This ensures adapters properly set SSL related options.
@tarebyte tarebyte merged commit 60f8155 into octokit:4-stable Jun 2, 2020
@tjwallace tjwallace deleted the ssl_verify branch June 2, 2020 17:31
@tjwallace tjwallace restored the ssl_verify branch June 2, 2020 17:31
@tjwallace tjwallace deleted the ssl_verify branch June 2, 2020 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants