about summary refs log tree commit homepage
diff options
context:
space:
mode:
-rw-r--r--lib/mongrel.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mongrel.rb b/lib/mongrel.rb
index 97833dc..6d080d3 100644
--- a/lib/mongrel.rb
+++ b/lib/mongrel.rb
@@ -444,7 +444,7 @@ module Mongrel
 
     def send_status(content_length=@body.length)
       if not @status_sent
-        @header['Content-Length'] = content_length unless @status == 304
+        @header['Content-Length'] = content_length if content_length and @status != 304
         write(Const::STATUS_FORMAT % [@status, HTTP_STATUS_CODES[@status]])
         @status_sent = true
       end