lib/httpx/headers.rb in httpx-0.16.1 vs lib/httpx/headers.rb in httpx-0.17.0
- old
+ new
@@ -55,10 +55,10 @@
# ignore what the +other+ headers has. Otherwise, set
#
def merge(other)
headers = dup
other.each do |field, value|
- headers[field] = value
+ headers[downcased(field)] = value
end
headers
end
# returns the comma-separated values of the header field