summary refs log tree commit
diff options
context:
space:
mode:
authorJanne Hietamaki <janne.hietamaki@leonidasoy.fi>2010-12-09 21:40:00 +0200
committerJoshua Peek <josh@joshpeek.com>2010-12-09 14:06:22 -0600
commit582a78beb987109c0246ad12d3ecbcddd0e00085 (patch)
tree2db44dc3d1ab678104fb0e5b6b1df98903550826
parent502a1bfe392c4266c70ff7944e0a1f9e814451b8 (diff)
downloadrack-582a78beb987109c0246ad12d3ecbcddd0e00085.tar.gz
use is_a?(IO) instance of instance_of?(String)
-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 1b1303a3..a464254e 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 && !body.instance_of?(String)
+            elsif !filename && content_type && body.is_a?(IO)
               body.rewind
 
               # Generic multipart cases, not coming from a form