lib/httpx/connection/http1.rb in httpx-1.2.6 vs lib/httpx/connection/http1.rb in httpx-1.3.0

- old
+ new

@@ -13,11 +13,11 @@ attr_reader :pending, :requests attr_accessor :max_concurrent_requests def initialize(buffer, options) - @options = Options.new(options) + @options = options @max_concurrent_requests = @options.max_concurrent_requests || MAX_REQUESTS @max_requests = @options.max_requests @parser = Parser::HTTP1.new(self) @buffer = buffer @version = [1, 1] @@ -144,10 +144,10 @@ log(level: 2, color: :green) { "-> #{chunk.inspect}" } response = request.response response << chunk rescue StandardError => e - error_response = ErrorResponse.new(request, e, request.options) + error_response = ErrorResponse.new(request, e) request.response = error_response dispatch end def on_complete