lib/httpx/options.rb in httpx-0.19.4 vs lib/httpx/options.rb in httpx-0.19.5
- old
+ new
@@ -207,11 +207,12 @@
def ==(other)
ivars = instance_variables | other.instance_variables
ivars.all? do |ivar|
case ivar
when :@headers
- headers = instance_variable_get(ivar)
- headers.same_headers?(other.instance_variable_get(ivar))
+ # currently, this is used to pick up an available matching connection.
+ # the headers do not play a role, as they are relevant only for the request.
+ true
when *REQUEST_IVARS
true
else
instance_variable_get(ivar) == other.instance_variable_get(ivar)
end