From 6dd90cb902f43b32b0db204484d5e3df79ec0d0c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 10 Feb 2011 13:34:58 -0800 Subject: remove unnecessary &block usage They needlessly allocate Proc objects --- lib/unicorn/app/exec_cgi.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/unicorn/app/exec_cgi.rb') diff --git a/lib/unicorn/app/exec_cgi.rb b/lib/unicorn/app/exec_cgi.rb index c259403..ac16755 100644 --- a/lib/unicorn/app/exec_cgi.rb +++ b/lib/unicorn/app/exec_cgi.rb @@ -33,7 +33,7 @@ module Unicorn::App sysseek(@body_offset = n) end - def each(&block) + def each sysseek @body_offset # don't use a preallocated buffer for sysread since we can't # guarantee an actual socket is consuming the yielded string -- cgit v1.2.3-24-ge0c7