fixed header initialization (specifically in the case when it is initialized with two set-cookie incoming fields)

This commit is contained in:
HoneyryderChuck 2017-12-19 13:00:27 +02:00
parent 193828527b
commit 87f949894b

View File

@ -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