summary refs log tree commit
path: root/lib/rack/sendfile.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rack/sendfile.rb')
-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 911ae409..645a8cfc 100644
--- a/lib/rack/sendfile.rb
+++ b/lib/rack/sendfile.rb
@@ -117,6 +117,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