From c73984946fc8660aa9a5cf740bb104297294a392 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 19 Jul 2009 17:23:36 -0700 Subject: app/exec_cgi: fix 1.9 compatibility "/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 --- lib/unicorn/app/exec_cgi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7