Skip to content

Commit 5fc7ff3

Browse files
committed
Do not use application/x-www-form-urlencoded if HTTP::FormData::Part is used
1 parent 499553a commit 5fc7ff3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/http/form_data.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def ensure_hash(obj)
7070
# @return [Boolean]
7171
def multipart?(data)
7272
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 }
73+
next true if v.is_a? FormData::Part
74+
v.respond_to?(:to_ary) && v.to_ary.any? { |e| e.is_a? FormData::Part }
7575
end
7676
end
7777
end

0 commit comments

Comments
 (0)