summaryrefslogtreecommitdiff
path: root/test/cgi
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 02:44:09 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-10-28 02:44:09 +0000
commited276bfc89f8b557d05292e5b5c985934e3d5bca (patch)
treea521731840e380e1c96db3a4516c5591807374ea /test/cgi
parente8d91f12136d997c5ef6798c32ae7c9cb4fd4b92 (diff)
* test_cgi_multipart.rb (_prepare): tempfile should be binmode.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi')
-rwxr-xr-xtest/cgi/test_cgi_multipart.rb2
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