mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/webrick/httpservlet/cgihandler.rb
(WEBrick::HTTPServlet::CGIHandler#do_GET): set binary mode for tempfile. http://pc12.2ch.net/test/read.cgi/tech/1265467681/286 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26887 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
da72b1bb6e
commit
d7cc39658c
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
|||
Fri Mar 12 17:36:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* lib/webrick/httpservlet/cgihandler.rb
|
||||
(WEBrick::HTTPServlet::CGIHandler#do_GET):
|
||||
set binary mode for tempfile.
|
||||
http://pc12.2ch.net/test/read.cgi/tech/1265467681/286
|
||||
|
||||
Fri Mar 12 13:52:00 2010 Kenta Murata <mrkn@mrkn.jp>
|
||||
|
||||
* tool/compile_prelude.rb: TMP_RUBY_PREFIX should replace
|
||||
|
|
|
@ -32,9 +32,9 @@ module WEBrick
|
|||
status = -1
|
||||
|
||||
cgi_in = IO::popen(@cgicmd, "wb")
|
||||
cgi_out = Tempfile.new("webrick.cgiout.", @tempdir)
|
||||
cgi_out = Tempfile.new("webrick.cgiout.", @tempdir, mode: IO::BINARY)
|
||||
cgi_out.set_encoding("ASCII-8BIT")
|
||||
cgi_err = Tempfile.new("webrick.cgierr.", @tempdir)
|
||||
cgi_err = Tempfile.new("webrick.cgierr.", @tempdir, mode: IO::BINARY)
|
||||
cgi_err.set_encoding("ASCII-8BIT")
|
||||
begin
|
||||
cgi_in.sync = true
|
||||
|
|
Loading…
Add table
Reference in a new issue