mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
merged r19977 from trunk into ruby_1_9_1.
* test_cgi_multipart.rb (_prepare): tempfile should be binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
523683afbb
commit
74e24f1698
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue