mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
registry: remove conversion (internal API, and not used anywhere)
This commit is contained in:
parent
3ed3dcaa43
commit
18625dbc11
@ -62,13 +62,7 @@ module HTTPX
|
||||
handler = @registry.fetch(tag)
|
||||
raise(Error, "#{tag} is not registered in #{self}") unless handler
|
||||
|
||||
case handler
|
||||
when Symbol, String
|
||||
obj = const_get(handler)
|
||||
@registry[tag] = obj
|
||||
else
|
||||
handler
|
||||
end
|
||||
handler
|
||||
end
|
||||
|
||||
# @param [Object] tag the identifier for the handler in the registry
|
||||
|
Loading…
x
Reference in New Issue
Block a user