Skip to content

Commit

Permalink
Merge pull request #972 from bdewater/net-http-persistent-ssl-minmax-…
Browse files Browse the repository at this point in the history
…version

Allow setting min/max SSL version for a Net::HTTP::Persistent connection
  • Loading branch information
olleolleolle committed Apr 14, 2019
2 parents 8420062 + b4a27f3 commit 8a65a58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/faraday/adapter/net_http_persistent.rb
Expand Up @@ -71,6 +71,8 @@ def configure_ssl(http, ssl)
http_set(http, :private_key, ssl[:client_key]) if ssl[:client_key]
http_set(http, :ca_file, ssl[:ca_file]) if ssl[:ca_file]
http_set(http, :ssl_version, ssl[:version]) if ssl[:version]
http_set(http, :min_version, ssl[:min_version]) if ssl[:min_version]
http_set(http, :max_version, ssl[:max_version]) if ssl[:max_version]
end

def http_set(http, attr, value)
Expand Down

0 comments on commit 8a65a58

Please sign in to comment.