diff --git a/lib/http/redirector.rb b/lib/http/redirector.rb index bb688acf..0199def9 100644 --- a/lib/http/redirector.rb +++ b/lib/http/redirector.rb @@ -32,12 +32,10 @@ class EndlessRedirectError < TooManyRedirectsError; end # @return [Fixnum] attr_reader :max_hops - # @param [#to_h] opts + # @param [Hash] opts # @option opts [Boolean] :strict (true) redirector hops policy # @option opts [#to_i] :max_hops (5) maximum allowed amount of hops def initialize(options = {}) - options = options.to_h - @strict = options.fetch(:strict, true) @max_hops = options.fetch(:max_hops, 5).to_i end