about summary refs log tree commit homepage
path: root/lib/mongrel.rb
diff options
context:
space:
mode:
authorfilipe <filipe@19e92222-5c0b-0410-8929-a290d50e31e9>2007-08-14 02:16:17 +0000
committerfilipe <filipe@19e92222-5c0b-0410-8929-a290d50e31e9>2007-08-14 02:16:17 +0000
commitf58ea237f68e0329c726dfa16155f0db343c4491 (patch)
tree7c548e49da186e13b1e6e119445ad2e2102ae250 /lib/mongrel.rb
parenta891276e2c20ca3cc82923129e48d88a5ff52a25 (diff)
downloadunicorn-f58ea237f68e0329c726dfa16155f0db343c4491.tar.gz
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@550 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'lib/mongrel.rb')
-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