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

SSL verification mode option #504

Open
annikoff opened this issue Oct 22, 2019 · 0 comments
Open

SSL verification mode option #504

annikoff opened this issue Oct 22, 2019 · 0 comments

Comments

@annikoff
Copy link

Is it possible to add an option ssl_verify_mode to Dragonfly.app.configure in order to use it here https://github.com/markevans/dragonfly/blob/master/lib/dragonfly/job/fetch_url.rb#L67-L80?

def get(url)
  url = parse_url(url)

  http = Net::HTTP.new(url.host, url.port)
  http.use_ssl = true if url.scheme == 'https'
+ http.verify_mode = app.ssl_verify_mode unless app.ssl_verify_mode.nil?

  request = Net::HTTP::Get.new(url.request_uri)

  if url.user || url.password
    request.basic_auth(url.user, url.password)
  end

  http.request(request)
end
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

No branches or pull requests

1 participant