diff options
Diffstat (limited to 'lib/webrick')
-rw-r--r-- | lib/webrick/cgi.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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"] |