mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-09-04 00:01:02 -04:00
fixing options class hierarchy, which caused truffleruby to fail
This commit is contained in:
parent
cab5a94d31
commit
e9e3063dcc
@ -42,7 +42,7 @@ module HTTPX
|
||||
class << self
|
||||
def new(options = {})
|
||||
# let enhanced options go through
|
||||
return options if self == Options && options.class > self
|
||||
return options if self == Options && options.class < self
|
||||
return options if options.is_a?(self)
|
||||
|
||||
super
|
||||
|
@ -271,7 +271,7 @@ module HTTPX
|
||||
(pl::OptionsMethods.instance_methods - Object.instance_methods).each do |meth|
|
||||
opts.options_class.method_added(meth)
|
||||
end
|
||||
@default_options = opts.options_class.new(@default_options)
|
||||
@default_options = opts.options_class.new(opts)
|
||||
end
|
||||
|
||||
@default_options = pl.extra_options(@default_options) if pl.respond_to?(:extra_options)
|
||||
|
Loading…
x
Reference in New Issue
Block a user