lib/httpx/plugins/multipart/part.rb in httpx-0.14.1 vs lib/httpx/plugins/multipart/part.rb in httpx-0.14.2
- old
+ new
@@ -24,10 +24,10 @@
if value.is_a?(File)
filename ||= File.basename(value.path)
content_type ||= MimeTypeDetector.call(value, filename) || "application/octet-stream"
[value, content_type, filename]
else
- [StringIO.new(value.to_s), content_type || "text/plain"]
+ [StringIO.new(value.to_s), content_type || "text/plain", filename]
end
end
end
end
end