diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-05 07:54:13 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-05 07:54:13 +0000 |
commit | 3d147e9bcd8f99c94900a00181692c2a09c3c3c9 (patch) | |
tree | 8b0ef9c7895e71c24f9c501ad6d32a3dd856925c /lib/unicorn/app | |
parent | e184b9d0fb45b31d80645475e22f0bbbecd195f9 (diff) | |
download | unicorn-3d147e9bcd8f99c94900a00181692c2a09c3c3c9.tar.gz |
Unicorn::Util.tmpio => Unicorn::TmpIO.new
This is slightly shorter and hopefully easier to find.
Diffstat (limited to 'lib/unicorn/app')
-rw-r--r-- | lib/unicorn/app/exec_cgi.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/unicorn/app/exec_cgi.rb b/lib/unicorn/app/exec_cgi.rb index 412c1d9..fea22f6 100644 --- a/lib/unicorn/app/exec_cgi.rb +++ b/lib/unicorn/app/exec_cgi.rb @@ -43,7 +43,7 @@ module Unicorn::App # Calls the app def call(env) - out, err = Unicorn::Util.tmpio, Unicorn::Util.tmpio + out, err = Unicorn::TmpIO.new, Unicorn::TmpIO.new inp = force_file_input(env) pid = fork { run_child(inp, out, err, env) } inp.close @@ -124,7 +124,7 @@ module Unicorn::App if inp.respond_to?(:size) && inp.size == 0 ::File.open('/dev/null', 'rb') else - tmp = Unicorn::Util.tmpio + tmp = Unicorn::TmpIO.new buf = inp.read(CHUNK_SIZE) begin |