lib/httpx/headers.rb in httpx-0.19.4 vs lib/httpx/headers.rb in httpx-0.19.5
- old
+ new
@@ -40,9 +40,11 @@
end
def same_headers?(headers)
@headers.empty? || begin
headers.each do |k, v|
+ next unless key?(k)
+
return false unless v == self[k]
end
true
end
end