lib/async/http/client.rb in async-http-0.34.2 vs lib/async/http/client.rb in async-http-0.34.3

- old
+ new

@@ -26,14 +26,14 @@ require_relative 'middleware' module Async module HTTP class Client - def initialize(endpoint, protocol = nil, authority = nil, retries: 3, **options) + def initialize(endpoint, protocol = endpoint.protocol, authority = endpoint.hostname, retries: 3, **options) @endpoint = endpoint - @protocol = protocol || endpoint.protocol - @authority = authority || endpoint.hostname + @protocol = protocol + @authority = authority @retries = retries @pool = connect(**options) end