diff --git a/lib/httpx/headers.rb b/lib/httpx/headers.rb index 6e2ef7f6..f2c27858 100644 --- a/lib/httpx/headers.rb +++ b/lib/httpx/headers.rb @@ -15,7 +15,9 @@ module HTTPX @headers = {} return unless h h.each do |field, value| - @headers[downcased(field)] = array_value(value) + array_value(value).each do |v| + add(downcased(field), v) + end end end