lib/httpx/plugins/multipart.rb in httpx-0.10.1 vs lib/httpx/plugins/multipart.rb in httpx-0.10.2

- old
+ new

@@ -22,10 +22,10 @@ def_delegator :@raw, :read def initialize(form) @raw = if multipart?(form) - HTTP::FormData::Multipart.new(Hash[*form.map { |k, v| Transcoder.enum_for(:normalize_keys, k, v).to_a }]) + HTTP::FormData::Multipart.new(Hash[form.flat_map { |k, v| Transcoder.enum_for(:normalize_keys, k, v).to_a }]) else HTTP::FormData::Urlencoded.new(form, :encoder => Transcoder::Form.method(:encode)) end end