about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-09-27 23:11:32 -0700
committerEric Wong <normalperson@yhbt.net>2009-09-27 23:11:32 -0700
commit6d7230207e43bf8a6f6bdbe505fb05fbd70389ac (patch)
tree57ac200ba57e85dc5d0c42c9ad125c4b26a44219
parent79c270990ec3a657c23510ee4f2f7f2b4c2c748f (diff)
downloadunicorn-6d7230207e43bf8a6f6bdbe505fb05fbd70389ac.tar.gz
It really shouldn't be a problem for existing CGI apps
to write to the StringIO object..
-rw-r--r--lib/unicorn/cgi_wrapper.rb7
1 files changed, 1 insertions, 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