We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 499553a commit 5fc7ff3Copy full SHA for 5fc7ff3
lib/http/form_data.rb
@@ -70,8 +70,8 @@ def ensure_hash(obj)
70
# @return [Boolean]
71
def multipart?(data)
72
data.any? do |_, v|
73
- next true if v.is_a? FormData::File
74
- 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 }
75
end
76
77
0 commit comments