summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2009-07-19 17:23:36 -0700
committerEric Wong <normalperson@yhbt.net>2009-07-19 17:23:36 -0700
commitc73984946fc8660aa9a5cf740bb104297294a392 (patch)
tree69c404915615fb0812ea9e47ddb1dbba4d6d8547
parent344b85ff28e160daa6563ab7c80b733abdeb874a (diff)
"/dev/null" must be opened in binary mode for Rack-compliance.
Additionally, avoid '' to create an empty string and use
Unicorn::Z instead.

Conflicts:

	lib/unicorn/app/exec_cgi.rb
-rw-r--r--lib/unicorn/app/exec_cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn/app/exec_cgi.rb b/lib/unicorn/app/exec_cgi.rb
index 67817c8..d0b31f8 100644
--- a/lib/unicorn/app/exec_cgi.rb
+++ b/lib/unicorn/app/exec_cgi.rb
@@ -124,7 +124,7 @@ module Unicorn::App
       else
         tmp = Unicorn::Util.tmpio
 
-        buf = Z.dup
+        buf = Unicorn::Z.dup
         while inp.read(CHUNK_SIZE, buf)
           tmp.syswrite(buf)
         end