diff options
Diffstat (limited to 'test')
-rwxr-xr-x | test/cgi/test_cgi_multipart.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index e77ecb254f..34f077e9c5 100755 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -135,7 +135,7 @@ class CGIMultipartTest < Test::Unit::TestCase ENV['CONTENT_LENGTH'] = input.length.to_s ENV['REQUEST_METHOD'] = 'POST' ## set $stdin - tmpfile = Tempfile.new(self.name) + tmpfile = Tempfile.new(self.name, :binmode => true) tmpfile << input tmpfile.rewind() $stdin = tmpfile |