* 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:
parent
e8d91f1213
commit
ed276bfc89
@ -135,7 +135,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||||||
ENV['CONTENT_LENGTH'] = input.length.to_s
|
ENV['CONTENT_LENGTH'] = input.length.to_s
|
||||||
ENV['REQUEST_METHOD'] = 'POST'
|
ENV['REQUEST_METHOD'] = 'POST'
|
||||||
## set $stdin
|
## set $stdin
|
||||||
tmpfile = Tempfile.new(self.name)
|
tmpfile = Tempfile.new(self.name, :binmode => true)
|
||||||
tmpfile << input
|
tmpfile << input
|
||||||
tmpfile.rewind()
|
tmpfile.rewind()
|
||||||
$stdin = tmpfile
|
$stdin = tmpfile
|
||||||
|
Loading…
x
Reference in New Issue
Block a user