summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rack/mock.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rack/mock.rb b/lib/rack/mock.rb
index e6fb57b1..c06e5390 100644
--- a/lib/rack/mock.rb
+++ b/lib/rack/mock.rb
@@ -149,8 +149,7 @@ module Rack
end
end
- empty_str = String.new
- opts[:input] ||= empty_str
+ opts[:input] ||= String.new
if String === opts[:input]
rack_input = StringIO.new(opts[:input])
else