Skip to content

Commit

Permalink
Do not use application/x-www-form-urlencoded if HTTP::FormData::Part …
Browse files Browse the repository at this point in the history
…is used
  • Loading branch information
abotalov committed Jan 21, 2017
1 parent 051fe83 commit 487f7e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/http/form_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def ensure_hash(obj)
# @return [Boolean]
def multipart?(data)
data.any? do |_, v|
next true if v.is_a? FormData::File
v.respond_to?(:to_ary) && v.to_ary.any? { |e| e.is_a? FormData::File }
next true if v.is_a? FormData::Part
v.respond_to?(:to_ary) && v.to_ary.any? { |e| e.is_a? FormData::Part }
end
end
end
Expand Down

0 comments on commit 487f7e9

Please sign in to comment.