Skip to content

Commit

Permalink
We should delete the X-Sendfile header so we don't confuse Apache
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.macosforge.org/repository/ruby/ControlTower/trunk@4516 23306eb0-4c56-4727-a40e-e92c0eb68959
  • Loading branch information
jballanc committed Sep 15, 2010
1 parent b530551 commit f625db6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/control_tower/rack_socket.rb
Expand Up @@ -53,6 +53,7 @@ def open
x_sendfile = headers[x_sendfile_header]
x_sendfile = ::File.open(x_sendfile, 'r') unless x_sendfile.kind_of? IO
x_sendfile_size = x_sendfile.stat.size
headers.delete(x_sendfile_header)
headers['Content-Length'] = x_sendfile_size
end

Expand Down

0 comments on commit f625db6

Please sign in to comment.