summary refs log tree commit
path: root/lib/rack/utils.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/utils.rb')
-rw-r--r--lib/rack/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 0b75cb88..1b1303a3 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -600,7 +600,7 @@ module Rack
 
               data = {:filename => filename, :type => content_type,
                       :name => name, :tempfile => body, :head => head}
-            elsif !filename && content_type
+            elsif !filename && content_type && !body.instance_of?(String)
               body.rewind
 
               # Generic multipart cases, not coming from a form