summary refs log tree commit
diff options
context:
space:
mode:
-rw-r--r--lib/rack/sendfile.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rack/sendfile.rb b/lib/rack/sendfile.rb
index 19cfd74a..87ae66ee 100644
--- a/lib/rack/sendfile.rb
+++ b/lib/rack/sendfile.rb
@@ -112,6 +112,7 @@ module Rack
           end
         when 'X-Sendfile', 'X-Lighttpd-Send-File'
           path = F.expand_path(body.to_path)
+          headers['Content-Length'] = '0'
           headers[type] = path
           body = []
         when '', nil