lib/httpx/options.rb in httpx-0.8.2 vs lib/httpx/options.rb in httpx-0.9.0

- old
+ new

@@ -144,11 +144,13 @@ end end end def merge(other) - h1 = to_hash h2 = other.to_hash + return self if h2.empty? + + h1 = to_hash merged = h1.merge(h2) do |k, v1, v2| case k when :headers, :ssl, :http2_settings, :timeout v1.merge(v2)