lib/httpx/response.rb in httpx-1.2.6 vs lib/httpx/response.rb in httpx-1.3.0

- old
+ new

@@ -245,14 +245,14 @@ def_delegator :@request, :uri # the IP address of the peer server. def_delegator :@request, :peer_address - def initialize(request, error, options) + def initialize(request, error) @request = request @response = request.response if request.response.is_a?(Response) @error = error - @options = Options.new(options) + @options = request.options log_exception(@error) end # returns the exception full message. def to_s