diff options
| author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-28 02:44:09 +0000 |
|---|---|---|
| committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-28 02:44:09 +0000 |
| commit | aa99656e5b79c20988b92b019d48b2766432f151 (patch) | |
| tree | a521731840e380e1c96db3a4516c5591807374ea | |
| parent | de8c85f572469905cb760b810a055b0aa0684b22 (diff) | |
| download | ruby-aa99656e5b79c20988b92b019d48b2766432f151.tar.gz ruby-aa99656e5b79c20988b92b019d48b2766432f151.tar.xz ruby-aa99656e5b79c20988b92b019d48b2766432f151.zip | |
* test_cgi_multipart.rb (_prepare): tempfile should be binmode.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -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 e77ecb254..34f077e9c 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 |
