mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-06 00:02:08 -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
aec527be33
commit
a5a48c8d83
@ -15,7 +15,9 @@ module HTTPX
|
|||||||
@headers = {}
|
@headers = {}
|
||||||
return unless h
|
return unless h
|
||||||
h.each do |field, value|
|
h.each do |field, value|
|
||||||
@headers[downcased(field)] = array_value(value)
|
array_value(value).each do |v|
|
||||||
|
add(downcased(field), v)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user