lib/httpx/adapters/webmock.rb in httpx-0.24.7 vs lib/httpx/adapters/webmock.rb in httpx-1.0.0

- old
+ new

@@ -1,15 +1,10 @@ # frozen_string_literal: true module WebMock module HttpLibAdapters - if RUBY_VERSION < "2.5" - require "webrick/httpstatus" - HTTP_REASONS = WEBrick::HTTPStatus::StatusMessage - else - require "net/http/status" - HTTP_REASONS = Net::HTTP::STATUS_CODES - end + require "net/http/status" + HTTP_REASONS = Net::HTTP::STATUS_CODES # # HTTPX plugin for webmock. # # Requests are "hijacked" at the session, before they're distributed to a connection.