lib/httpx/plugins/multipart/part.rb in httpx-0.14.0 vs lib/httpx/plugins/multipart/part.rb in httpx-0.14.1

- 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), "text/plain"] + [StringIO.new(value.to_s), content_type || "text/plain"] end end end end end