lib/httpx/headers.rb in httpx-0.13.2 vs lib/httpx/headers.rb in httpx-0.14.0
- old
+ new
@@ -110,10 +110,10 @@
yield(field, value.join(", ")) unless value.empty?
end
end
def ==(other)
- to_hash == Headers.new(other).to_hash
+ other == to_hash
end
# the headers store in Hash format
def to_hash
Hash[to_a]