diff options
| author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-29 15:59:01 +0000 |
|---|---|---|
| committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-10-29 15:59:01 +0000 |
| commit | dab94b325221ebfc022b021a2d7079c3e6188db0 (patch) | |
| tree | debb2ec3ac8f9d395585517dabdfe9cab6eda5d7 /test/cgi | |
| parent | ead07639021b665d71f720fd5a0a431571bc12fe (diff) | |
| download | ruby-dab94b325221ebfc022b021a2d7079c3e6188db0.tar.gz ruby-dab94b325221ebfc022b021a2d7079c3e6188db0.tar.xz ruby-dab94b325221ebfc022b021a2d7079c3e6188db0.zip | |
merged r19977 from trunk into ruby_1_9_1.
* test_cgi_multipart.rb (_prepare): tempfile should be binmode.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi')
| -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 |
