From c8b6daadf5bb0052f77848172766c0e677028316 Mon Sep 17 00:00:00 2001 From: zedshaw Date: Tue, 15 Aug 2006 01:50:51 +0000 Subject: Small error on a rare condition. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@329 19e92222-5c0b-0410-8929-a290d50e31e9 --- lib/mongrel.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/mongrel.rb') diff --git a/lib/mongrel.rb b/lib/mongrel.rb index 6eac6e2..595df66 100644 --- a/lib/mongrel.rb +++ b/lib/mongrel.rb @@ -200,9 +200,6 @@ module Mongrel @body = StringIO.new @body.write params.http_body dispatcher.request_progress(params, 0, content_length) if dispatcher - elsif remain < 0 - # ERROR, they're sending bad requests - raise HttpParserError.new("Sent body size #{params.http_body.length} but declared Content-Length: #{content_length}") elsif remain > 0 # must read more data to complete body if remain > Const::MAX_BODY @@ -218,7 +215,7 @@ module Mongrel read_body(remain, content_length, dispatcher) end - @body.rewind + @body.rewind if body end -- cgit v1.2.3-24-ge0c7