From 563cac1f6967b52e2efe39450e29f62a4ff20f64 Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Thu, 15 Sep 2005 15:07:05 +0000 Subject: [PATCH] * lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set $stdout.binmode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ lib/webrick/cgi.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index 33c6a94cae..5e963a5cbe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Sep 16 00:03:11 2005 GOTOU Yuuzou + + * lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set + $stdout.binmode. + Thu Sep 15 23:25:21 2005 NAKAMURA, Hiroshi * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5. diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb index ae77e1759d..c76d7b8633 100644 --- a/lib/webrick/cgi.rb +++ b/lib/webrick/cgi.rb @@ -128,6 +128,7 @@ module WEBrick @header_part = StringIO.new @body_part = stdin @out_port = stdout + @out_port.binmode @server_addr = @env["SERVER_ADDR"] || "0.0.0.0" @server_name = @env["SERVER_NAME"]