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.
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
|
@ -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
Add a link
Reference in a new issue