mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-01 00:01:03 -04:00
fixed header initialization (specifically in the case when it is initialized with two set-cookie incoming fields)
This commit is contained in:
parent
193828527b
commit
87f949894b
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user