From 6d7230207e43bf8a6f6bdbe505fb05fbd70389ac Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 27 Sep 2009 23:11:32 -0700 Subject: cgi_wrapper: don't warn about stdoutput usage It really shouldn't be a problem for existing CGI apps to write to the StringIO object.. --- lib/unicorn/cgi_wrapper.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/unicorn/cgi_wrapper.rb b/lib/unicorn/cgi_wrapper.rb index 729efee..02cc184 100644 --- a/lib/unicorn/cgi_wrapper.rb +++ b/lib/unicorn/cgi_wrapper.rb @@ -138,13 +138,8 @@ class Unicorn::CGIWrapper < ::CGI @env_table[RACK_INPUT] end - # The stdoutput should be completely bypassed but we'll drop a - # warning just in case + # return a pointer to the StringIO body since it's STDOUT-like def stdoutput - err = @env_table[RACK_ERRORS] - err.puts "WARNING: Your program is doing something not expected." - err.puts "Please tell Eric that stdoutput was used and what software " \ - "you are running. Thanks." @body end -- cgit v1.2.3-24-ge0c7