diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-09-29 23:57:57 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-04 21:01:27 +0000 |
commit | dfc5f5a5e4aec4578b79de68c91906da75472a5a (patch) | |
tree | 6332e1c382783ab1bc18b269109aac4c3317894e /lib/unicorn/tee_input.rb | |
parent | fe94d80cb37ee441762ad2a8f5c25092f8eb57a8 (diff) | |
download | unicorn-dfc5f5a5e4aec4578b79de68c91906da75472a5a.tar.gz |
This should ensure we have less typing to do.
Diffstat (limited to 'lib/unicorn/tee_input.rb')
-rw-r--r-- | lib/unicorn/tee_input.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/unicorn/tee_input.rb b/lib/unicorn/tee_input.rb index 540cfe0..7e508fc 100644 --- a/lib/unicorn/tee_input.rb +++ b/lib/unicorn/tee_input.rb @@ -25,8 +25,11 @@ class Unicorn::TeeInput < Struct.new(:socket, :req, :parser, # Initializes a new TeeInput object. You normally do not have to call # this unless you are writing an HTTP server. - def initialize(*args) - super(*args) + def initialize(socket, request) + self.socket = socket + self.req = request.env + self.parser = request.parser + self.buf = request.buf self.len = parser.content_length self.tmp = len && len < @@client_body_buffer_size ? StringIO.new("") : Unicorn::Util.tmpio |