diff options
author | Aaron Pfeifer <aaron.pfeifer@gmail.com> | 2009-01-24 19:26:43 -0500 |
---|---|---|
committer | Ryan Tomayko <rtomayko@gmail.com> | 2009-01-24 17:50:31 -0800 |
commit | 0c3e6a9636724e235d6fe7bff11384c485ea618c (patch) | |
tree | dec11e5611315d168a2bcb540f2ebd452f8598d1 /lib/rack/handler/cgi.rb | |
parent | 2f79f55c314ea6026ffc3350f261ad3e902566be (diff) | |
download | rack-0c3e6a9636724e235d6fe7bff11384c485ea618c.tar.gz |
Use $stdin and $stderr instead of STDIN and STDERR
This ensures that references are always to the *current* streams. Signed-off-by: Ryan Tomayko <rtomayko@gmail.com>
Diffstat (limited to 'lib/rack/handler/cgi.rb')
-rw-r--r-- | lib/rack/handler/cgi.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/handler/cgi.rb b/lib/rack/handler/cgi.rb index 1922402c..e8bf139d 100644 --- a/lib/rack/handler/cgi.rb +++ b/lib/rack/handler/cgi.rb @@ -12,8 +12,8 @@ module Rack env["SCRIPT_NAME"] = "" if env["SCRIPT_NAME"] == "/" env.update({"rack.version" => [0,1], - "rack.input" => STDIN, - "rack.errors" => STDERR, + "rack.input" => $stdin, + "rack.errors" => $stderr, "rack.multithread" => false, "rack.multiprocess" => true, |