about summary refs log tree commit homepage
path: root/lib/mongrel/http_request.rb
diff options
context:
space:
mode:
authorIan Ownbey <imownbey@gmail.com>2008-11-22 18:00:10 -0800
committerIan Ownbey <imownbey@gmail.com>2008-11-22 18:07:27 -0800
commit01a76eb1ddc67dda21cc2646dc73c15830cb3de7 (patch)
tree7a2073a9e9d40cc73d7171539916cce21a84199e /lib/mongrel/http_request.rb
parenta59c388dd518d0b0ff85d0621d3406fcc23d6173 (diff)
downloadunicorn-01a76eb1ddc67dda21cc2646dc73c15830cb3de7.tar.gz
Diffstat (limited to 'lib/mongrel/http_request.rb')
-rw-r--r--lib/mongrel/http_request.rb8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/mongrel/http_request.rb b/lib/mongrel/http_request.rb
index 8df3a5a..0e3790f 100644
--- a/lib/mongrel/http_request.rb
+++ b/lib/mongrel/http_request.rb
@@ -22,17 +22,11 @@ module Mongrel
     # You don't really call this.  It's made for you.
     # Main thing it does is hook up the params, and store any remaining
     # body data into the HttpRequest.body attribute.
-    def initialize(params, socket, dispatchers)
+    def initialize(params, socket)
       @params = params
       @socket = socket
-      @dispatchers = dispatchers
       content_length = @params[Const::CONTENT_LENGTH].to_i
       remain = content_length - @params.http_body.length
-      
-      # tell all dispatchers the request has begun
-      @dispatchers.each do |dispatcher|
-        dispatcher.request_begins(@params)
-      end unless @dispatchers.nil? || @dispatchers.empty?
 
       # Some clients (like FF1.0) report 0 for body and then send a body.  This will probably truncate them but at least the request goes through usually.
       if remain <= 0