lib/httpx/session.rb in httpx-0.18.6 vs lib/httpx/session.rb in httpx-0.18.7

- old
+ new

@@ -205,11 +205,11 @@ loop do request = requests.first return responses unless request - pool.next_tick until (response = fetch_response(request, connections, request.options)) + catch(:coalesced) { pool.next_tick } until (response = fetch_response(request, connections, request.options)) responses << response requests.shift break if requests.empty? @@ -307,20 +307,6 @@ self end # :nocov: end end - - unless ENV.grep(/https?_proxy$/i).empty? - proxy_session = plugin(:proxy) - ::HTTPX.send(:remove_const, :Session) - ::HTTPX.send(:const_set, :Session, proxy_session.class) - end - - # :nocov: - if Session.default_options.debug_level > 2 - proxy_session = plugin(:internal_telemetry) - ::HTTPX.send(:remove_const, :Session) - ::HTTPX.send(:const_set, :Session, proxy_session.class) - end - # :nocov: end