Skip to content

Commit

Permalink
Allow setting min/max SSL version for a Net::HTTP connection on Ruby 2.5
Browse files Browse the repository at this point in the history
  • Loading branch information
bdewater committed Apr 24, 2018
1 parent 4381c2d commit a34a1f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/faraday/adapter/net_http.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ def configure_ssl(http, ssl)
http.ca_path = ssl[:ca_path] if ssl[:ca_path]
http.verify_depth = ssl[:verify_depth] if ssl[:verify_depth]
http.ssl_version = ssl[:version] if ssl[:version]
http.min_version = ssl[:min_version] if ssl[:min_version]
http.max_version = ssl[:max_version] if ssl[:max_version]
end

def configure_request(http, req)
Expand Down

0 comments on commit a34a1f0

Please sign in to comment.