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/http_request.rb | |
parent | fe94d80cb37ee441762ad2a8f5c25092f8eb57a8 (diff) | |
download | unicorn-dfc5f5a5e4aec4578b79de68c91906da75472a5a.tar.gz |
This should ensure we have less typing to do.
Diffstat (limited to 'lib/unicorn/http_request.rb')
-rw-r--r-- | lib/unicorn/http_request.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/unicorn/http_request.rb b/lib/unicorn/http_request.rb index 8abc945..c12f721 100644 --- a/lib/unicorn/http_request.rb +++ b/lib/unicorn/http_request.rb @@ -21,6 +21,8 @@ module Unicorn NULL_IO = StringIO.new("") LOCALHOST = '127.0.0.1' + attr_reader :env, :parser, :buf + def initialize @parser = Unicorn::HttpParser.new @buf = "" @@ -67,7 +69,7 @@ module Unicorn end while @parser.headers(@env, @buf).nil? end @env[Const::RACK_INPUT] = 0 == @parser.content_length ? - NULL_IO : Unicorn::TeeInput.new(socket, @env, @parser, @buf) + NULL_IO : Unicorn::TeeInput.new(socket, self) @env.merge!(DEFAULTS) end end |