1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
usa 2008-10-28 02:44:09 +00:00
parent e8d91f1213
commit ed276bfc89

View file

@ -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