diff --git a/Gemfile b/Gemfile index f12209f..235ab2f 100644 --- a/Gemfile +++ b/Gemfile @@ -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" diff --git a/lib/faraday/adapter/net_http_persistent.rb b/lib/faraday/adapter/net_http_persistent.rb index 7b74683..dd2af43 100644 --- a/lib/faraday/adapter/net_http_persistent.rb +++ b/lib/faraday/adapter/net_http_persistent.rb @@ -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