Skip to content

Commit

Permalink
Feat: Support ciphers SSLOptions (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
saiqulhaq authored Oct 7, 2024
1 parent cda3e8b commit 4908b44
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 0 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ source "https://rubygems.org"

gemspec

gem "faraday", ">= 1"

gem "multipart-parser", "~> 0.1.1"
gem "rake", "~> 13.0"
gem "rspec", "~> 3.0"
Expand Down
8 changes: 7 additions & 1 deletion lib/faraday/adapter/net_http_persistent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,13 @@ def request_with_wrapped_block(http, env)
min_version: :min_version,
max_version: :max_version,
verify_hostname: :verify_hostname
}.freeze
}

if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new("2.11.0")
SSL_CONFIGURATIONS[:ciphers] = :ciphers
end

SSL_CONFIGURATIONS.freeze

def configure_ssl(http, ssl)
return unless ssl
Expand Down

0 comments on commit 4908b44

Please sign in to comment.