lib/rack/multipart/generator.rb in rack-1.3.0 vs lib/rack/multipart/generator.rb in rack-1.3.1
- old
+ new
@@ -66,10 +66,10 @@
end
end
h
end
end
-
+
def content_for_tempfile(io, file, name)
<<-EOF
--#{MULTIPART_BOUNDARY}\r
Content-Disposition: form-data; name="#{name}"; filename="#{Utils.escape(file.original_filename)}"\r
Content-Type: #{file.content_type}\r
\ No newline at end of file