diff options
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 |