summary refs log tree commit
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2011-03-21 10:32:46 -0500
committerJoshua Peek <josh@joshpeek.com>2011-03-21 10:32:46 -0500
commitb81080be0e5b3e9a794aa56609083b5d9dc90c3b (patch)
tree54b86d317e8d034b26a4257b3493cc3a89ac28ba
parent104976c9109b53bbea6c689b988d223fc1e906b8 (diff)
parent215180ab994c8a9f1f6d87f8cef2280e61a7cafc (diff)
downloadrack-b81080be0e5b3e9a794aa56609083b5d9dc90c3b.tar.gz
Merge branch 'master' of https://github.com/hanklords/rack into hanklords-master
-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