mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/cgi/test_cgi_multipart.rb (_read):
performance improvement in windows.[ruby-dev:39650] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25737 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
64486dfd8e
commit
f97d8eec10
1 changed files with 1 additions and 5 deletions
|
@ -179,11 +179,7 @@ class CGIMultipartTest < Test::Unit::TestCase
|
|||
|
||||
def _read(basename)
|
||||
filename = File.join(File.dirname(__FILE__), 'testdata', basename)
|
||||
if RUBY_VERSION>="1.9"
|
||||
s = File.open(filename, 'r:ascii-8bit') {|f| f.read() }
|
||||
else
|
||||
s = File.open(filename, 'rb') {|f| f.read() }
|
||||
end
|
||||
s = File.open(filename, 'rb') {|f| f.read() }
|
||||
|
||||
return s
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue