lib/httpx/registry.rb in httpx-0.16.1 vs lib/httpx/registry.rb in httpx-0.17.0
- old
+ new
@@ -57,10 +57,10 @@
#
def registry(tag = nil)
@registry ||= {}
return @registry if tag.nil?
- handler = @registry.fetch(tag)
+ handler = @registry[tag]
raise(Error, "#{tag} is not registered in #{self}") unless handler
handler
end