Skip to content

Commit

Permalink
Drop support for net-http-persistent < 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
p0deje committed May 3, 2019
1 parent 6b069e2 commit 4a8948c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions rb/lib/selenium/webdriver/remote/http/persistent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,7 @@ def new_http_client
proxy = URI.parse(url)
end

if Net::HTTP::Persistent::VERSION >= '3'
Net::HTTP::Persistent.new name: 'webdriver', proxy: proxy
else
WebDriver.logger.warn 'Support for this version of net-http-persistent is deprecated. Please upgrade.'
Net::HTTP::Persistent.new 'webdriver', proxy
end
Net::HTTP::Persistent.new name: 'webdriver', proxy: proxy
end

def response_for(request)
Expand Down

0 comments on commit 4a8948c

Please sign in to comment.